nixpkgs/pkgs/tools/admin/coldsnap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
862 B
Nix
Raw Normal View History

2022-10-14 19:48:25 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, openssl
, stdenv
, Security
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "coldsnap";
2024-03-16 00:47:43 +00:00
version = "0.6.1";
2022-10-14 19:48:25 +01:00
src = fetchFromGitHub {
owner = "awslabs";
repo = pname;
rev = "v${version}";
2024-03-16 00:47:43 +00:00
hash = "sha256-nQ9OIeFo79f2UBNE9dCl7+bt55XTjQTgWlfyP0Jkj1w=";
2022-10-14 19:48:25 +01:00
};
2024-03-16 00:47:43 +00:00
cargoHash = "sha256-8HgO8BqBWiygZmiuRL8WJy3OXSBAKFNVGN7NA6Fx2BM=";
2022-10-14 19:48:25 +01:00
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ pkg-config ];
meta = with lib; {
homepage = "https://github.com/awslabs/coldsnap";
description = "A command line interface for Amazon EBS snapshots";
changelog = "https://github.com/awslabs/coldsnap/blob/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = teams.determinatesystems.members;
2024-02-11 02:19:15 +00:00
mainProgram = "coldsnap";
2022-10-14 19:48:25 +01:00
};
}