2021-02-04 02:58:24 +00:00
|
|
|
{ lib, stdenv, fetchurl, installShellFiles, e2fsprogs }:
|
2015-04-06 09:56:54 +00:00
|
|
|
|
2021-02-04 02:58:24 +00:00
|
|
|
let
|
|
|
|
manpage = fetchurl {
|
|
|
|
url = "https://manpages.ubuntu.com/manpages.gz/xenial/man8/zerofree.8.gz";
|
|
|
|
sha256 = "0y132xmjl02vw41k794psa4nmjpdyky9f6sf0h4f7rvf83z3zy4k";
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "zerofree";
|
2018-02-28 03:23:53 +00:00
|
|
|
version = "1.1.1";
|
2015-04-06 09:56:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://frippery.org/uml/${pname}-${version}.tgz";
|
2018-02-28 03:23:53 +00:00
|
|
|
sha256 = "0rrqfa5z103ws89vi8kfvbks1cfs74ix6n1wb6vs582vnmhwhswm";
|
2015-04-06 09:56:54 +00:00
|
|
|
};
|
|
|
|
|
2021-02-04 02:58:24 +00:00
|
|
|
buildInputs = [ e2fsprogs installShellFiles ];
|
2015-04-06 09:56:54 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-04 02:58:24 +00:00
|
|
|
mkdir -p $out/bin $out/share/zerofree
|
2015-04-06 09:56:54 +00:00
|
|
|
cp zerofree $out/bin
|
2021-02-04 02:58:24 +00:00
|
|
|
cp COPYING $out/share/zerofree/COPYING
|
|
|
|
installManPage ${manpage}
|
|
|
|
'';
|
2015-04-06 09:56:54 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://frippery.org/uml/";
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Zero free blocks from ext2, ext3 and ext4 file-systems";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.theuni ];
|
2015-04-06 09:56:54 +00:00
|
|
|
};
|
|
|
|
}
|