2021-06-26 22:26:49 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lethe";
|
2022-09-26 19:55:37 +01:00
|
|
|
version = "0.8.0";
|
2021-06-26 22:26:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kostassoid";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-26 19:55:37 +01:00
|
|
|
sha256 = "sha256-o57WtzTouIzB0yl6lEUwpav0rm+jwD5tyBqK/MRN+ME=";
|
2021-06-26 22:26:49 +01:00
|
|
|
};
|
|
|
|
|
2022-09-26 19:55:37 +01:00
|
|
|
cargoSha256 = "sha256-flj4p4qAMMy46/nY48lRNcyB8KzEUoYOfhDk7xR7qQU=";
|
2021-06-26 22:26:49 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|