nixpkgs/pkgs/tools/filesystems/zerofree/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
938 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, installShellFiles, e2fsprogs }:
2015-04-06 09:56:54 +00:00
let
manpage = fetchurl {
url = "https://manpages.ubuntu.com/manpages.gz/xenial/man8/zerofree.8.gz";
sha256 = "0y132xmjl02vw41k794psa4nmjpdyky9f6sf0h4f7rvf83z3zy4k";
};
in stdenv.mkDerivation rec {
pname = "zerofree";
version = "1.1.1";
2015-04-06 09:56:54 +00:00
src = fetchurl {
url = "https://frippery.org/uml/${pname}-${version}.tgz";
sha256 = "0rrqfa5z103ws89vi8kfvbks1cfs74ix6n1wb6vs582vnmhwhswm";
2015-04-06 09:56:54 +00:00
};
buildInputs = [ e2fsprogs installShellFiles ];
2015-04-06 09:56:54 +00:00
installPhase = ''
mkdir -p $out/bin $out/share/zerofree
2015-04-06 09:56:54 +00:00
cp zerofree $out/bin
cp COPYING $out/share/zerofree/COPYING
installManPage ${manpage}
'';
2015-04-06 09:56:54 +00:00
meta = {
homepage = "https://frippery.org/uml/";
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
};
}