2021-06-26 23:26:49 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lethe";
|
2022-07-28 21:52:17 +02:00
|
|
|
version = "0.7.0";
|
2021-06-26 23:26:49 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kostassoid";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-28 21:52:17 +02:00
|
|
|
sha256 = "sha256-uMpqN9xgA0S861JChfJebU6azxJN8ScftmX8yJV8NM8=";
|
2021-06-26 23:26:49 +02:00
|
|
|
};
|
|
|
|
|
2022-07-28 21:52:17 +02:00
|
|
|
cargoSha256 = "sha256-GeZ/25ZaD/vyQo02SUt1JtNUL2QCg0varOJC1M3Ji9s=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|