Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, pkgs 3, lib 4, fetchurl 5, e2fsprogs 6, ntfs3g 7, xfsprogs 8, reiser4progs 9, libaal 10, jfsutils 11, libuuid 12, texinfo 13}: 14 15stdenv.mkDerivation rec { 16 pname = "wipefreespace"; 17 version = "2.5"; 18 19 src = fetchurl { 20 url = "mirror://sourceforge/project/wipefreespace/wipefreespace/${version}/wipefreespace-${version}.tar.gz"; 21 hash = "sha256-wymV6G4Et5TCoIztZfdb3xuzjdBHFyB5OmI4EcsJKwQ="; 22 }; 23 24 nativeBuildInputs = [ 25 texinfo 26 ]; 27 28 # missed: Reiser3 FAT12/16/32 MinixFS HFS+ OCFS 29 buildInputs = [ 30 e2fsprogs 31 ntfs3g 32 xfsprogs 33 reiser4progs 34 libaal 35 jfsutils 36 libuuid 37 ]; 38 39 strictDeps = true; 40 41 preConfigure = '' 42 export PATH=$PATH:${xfsprogs}/bin 43 export CFLAGS=-I${jfsutils}/include 44 export LDFLAGS="-L${jfsutils}/lib -L${reiser4progs}/lib" 45 ''; 46 47 meta = with lib; { 48 description = "A program which will securely wipe the free space"; 49 homepage = "https://wipefreespace.sourceforge.io"; 50 license = licenses.gpl2Plus; 51 platforms = platforms.linux; 52 maintainers = with maintainers; [ catap ]; 53 }; 54}