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

30 lines
651 B
Nix
Raw Normal View History

2021-06-26 21:26:49 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "lethe";
2021-12-07 09:48:42 +00:00
version = "0.6.1";
2021-06-26 21:26:49 +00:00
src = fetchFromGitHub {
owner = "kostassoid";
repo = pname;
rev = "v${version}";
2021-12-07 09:48:42 +00:00
sha256 = "sha256-0UYUzef7ja8nc2zs7eWqqXQfVVbEJEH9/NRRHVkvkYk=";
2021-06-26 21:26:49 +00:00
};
2021-12-07 09:48:42 +00:00
cargoSha256 = "sha256-suE8USKTZECVlTX4Wpz3vapo/Wmn7qaC3eyAJ3gmzqk=";
2021-06-26 21:26:49 +00: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 ];
};
}