2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, Security
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "coldsnap";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.6.2";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-NYMcCLFhX7eD6GXMP9NZDXDnXDDVbcvVwhUAqmwX+ig=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-ngkoxybl52zTH4wo+sIUtU8vtzOAp+jU1RyTO2KbCgU=";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
2022-10-30 15:09:59 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/awslabs/coldsnap";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command line interface for Amazon EBS snapshots";
|
2022-10-30 15:09:59 +00:00
|
|
|
changelog = "https://github.com/awslabs/coldsnap/blob/${src.rev}/CHANGELOG.md";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.asl20;
|
2022-10-30 15:09:59 +00:00
|
|
|
maintainers = teams.determinatesystems.members;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "coldsnap";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
}
|