nixpkgs/pkgs/tools/security/lethe/default.nix

30 lines
651 B
Nix
Raw Normal View History

2021-06-26 23:26:49 +02:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "lethe";
2021-08-15 09:57:05 +02:00
version = "0.6.0";
2021-06-26 23:26:49 +02:00
src = fetchFromGitHub {
owner = "kostassoid";
repo = pname;
rev = "v${version}";
2021-08-15 09:57:05 +02:00
sha256 = "sha256-WYDO44S2cBPe14vv/4i51tgtnoR+6FN2GyAbjJ7AYy8=";
2021-06-26 23:26:49 +02:00
};
2021-08-15 09:57:05 +02:00
cargoSha256 = "sha256-5fWclZgt5EuWrsYRheTX9otNiGbJ41Q/fTYdKMWRMHc=";
2021-06-26 23:26:49 +02:00
buildInputs = lib.optional stdenv.isDarwin Security;
meta = with lib; {
description = "Tool to wipe drives in a secure way";
homepage = "https://github.com/kostassoid/lethe";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}