Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 installShellFiles, 6 pkg-config, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "thc-secure-delete"; 11 version = "3.1.1"; 12 13 src = fetchFromGitHub { 14 owner = "gordrs"; 15 repo = "thc-secure-delete"; 16 rev = "v${finalAttrs.version}"; 17 hash = "sha256-hvWuxFkzhOSCplPtyjRtn36bIk6KdPBcpr3lAmiAyfE="; 18 }; 19 20 nativeBuildInputs = [ 21 pkg-config 22 installShellFiles 23 ]; 24 25 makeFlags = [ 26 "CC=${stdenv.cc.targetPrefix}cc" 27 ]; 28 29 installPhase = '' 30 runHook preInstall 31 32 install -Dt $out/bin/ -m755 srm sdmem sswap sfill 33 installManPage *.1 34 35 runHook postInstall 36 ''; 37 38 meta = with lib; { 39 description = "THC's Secure Delete tools"; 40 homepage = "https://github.com/gordrs/thc-secure-delete"; 41 changelog = "https://github.com/gordrs/thc-secure-delete/blob/v${finalAttrs.version}/CHANGES"; 42 license = licenses.gpl2Only; 43 maintainers = with maintainers; [ tochiaha ]; 44 mainProgram = "srm"; 45 platforms = platforms.all; 46 }; 47})