Merge pull request #196035 from Hoverbear/init-coldsnap

coldsnap: init at 0.4.2
This commit is contained in:
Linus Heckemann 2022-10-24 10:28:17 +02:00 committed by GitHub
commit f9d522d170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ lib
, rustPlatform
, fetchFromGitHub
, openssl
, stdenv
, Security
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "coldsnap";
version = "0.4.2";
src = fetchFromGitHub {
owner = "awslabs";
repo = pname;
rev = "v${version}";
hash = "sha256-+JQjJ4F++S3eLnrqV1v4leepOvZBf8Vp575rnlDx2Cg=";
};
cargoHash = "sha256-mAnoe9rK4+OpCzD7tzV+FQz+fFr8NapzsXtON3lS/tk";
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.apsl20;
maintainers = with maintainers; [ hoverbear ];
};
}

View file

@ -402,6 +402,10 @@ with pkgs;
conftest = callPackage ../development/tools/conftest { };
coldsnap = callPackage ../tools/admin/coldsnap {
inherit (darwin.apple_sdk.frameworks) Security;
};
colemak-dh = callPackage ../data/misc/colemak-dh { };
colmena = callPackage ../tools/admin/colmena { };