2021-06-26 21:26:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lethe";
|
2022-09-27 14:52:19 +00:00
|
|
|
version = "0.8.2";
|
2021-06-26 21:26:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kostassoid";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-27 14:52:19 +00:00
|
|
|
sha256 = "sha256-y2D/80pnpYpTl+q9COTQkvtj9lzBlOWuMcnn5WFnX8E=";
|
2021-06-26 21:26:49 +00:00
|
|
|
};
|
|
|
|
|
2022-09-27 14:52:19 +00:00
|
|
|
cargoSha256 = "sha256-SFNNpbHZdDJvH95f+VWyVKnQp3OJwQmCOqHtLAhhkOk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|