1 { lib, stdenv, fetchurl, installShellFiles, e2fsprogs }:
5 url = "https://manpages.ubuntu.com/manpages.gz/xenial/man8/zerofree.8.gz";
6 sha256 = "0y132xmjl02vw41k794psa4nmjpdyky9f6sf0h4f7rvf83z3zy4k";
8 in stdenv.mkDerivation rec {
13 url = "https://frippery.org/uml/${pname}-${version}.tgz";
14 sha256 = "0rrqfa5z103ws89vi8kfvbks1cfs74ix6n1wb6vs582vnmhwhswm";
17 buildInputs = [ e2fsprogs installShellFiles ];
20 mkdir -p $out/bin $out/share/zerofree
22 cp COPYING $out/share/zerofree/COPYING
23 installManPage ${manpage}
27 homepage = "https://frippery.org/uml/";
28 description = "Zero free blocks from ext2, ext3 and ext4 file-systems";
29 platforms = lib.platforms.linux;
30 license = lib.licenses.gpl2;
31 maintainers = [ lib.maintainers.theuni ];