Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, rustPlatform 5, Security 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "lethe"; 10 version = "0.8.2"; 11 12 src = fetchFromGitHub { 13 owner = "kostassoid"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "sha256-y2D/80pnpYpTl+q9COTQkvtj9lzBlOWuMcnn5WFnX8E="; 17 }; 18 19 cargoSha256 = "sha256-SFNNpbHZdDJvH95f+VWyVKnQp3OJwQmCOqHtLAhhkOk="; 20 21 buildInputs = lib.optional stdenv.isDarwin Security; 22 23 meta = with lib; { 24 description = "Tool to wipe drives in a secure way"; 25 homepage = "https://github.com/kostassoid/lethe"; 26 license = licenses.asl20; 27 maintainers = with maintainers; [ fab ]; 28 }; 29}