1{ lib
2, rustPlatform
3, fetchFromGitHub
4, openssl
5, stdenv
6, Security
7, pkg-config
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "coldsnap";
12 version = "0.5.1";
13
14 src = fetchFromGitHub {
15 owner = "awslabs";
16 repo = pname;
17 rev = "v${version}";
18 hash = "sha256-WqNGajtezhBDYmgUayKjdNAZSyKirIYeYOnozMCIya4=";
19 };
20 cargoHash = "sha256-av9hsvY8xsB+HlIRLYNFDJc9eyBfOyBZ347vWoVsDmM=";
21
22 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
23 nativeBuildInputs = [ pkg-config ];
24
25 meta = with lib; {
26 homepage = "https://github.com/awslabs/coldsnap";
27 description = "A command line interface for Amazon EBS snapshots";
28 changelog = "https://github.com/awslabs/coldsnap/blob/${src.rev}/CHANGELOG.md";
29 license = licenses.apsl20;
30 maintainers = teams.determinatesystems.members;
31 };
32}