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

26 lines
603 B
Nix
Raw Normal View History

2015-04-06 09:56:54 +00:00
{ stdenv, fetchurl, e2fsprogs }:
stdenv.mkDerivation rec {
2016-07-14 03:10:56 +00:00
name = "zerofree-${version}";
version = "1.0.4";
2015-04-06 09:56:54 +00:00
src = fetchurl {
2016-07-14 03:10:56 +00:00
url = "http://frippery.org/uml/${name}.tgz";
sha256 = "0f38mvn3wfacapayl54q04qlz4in417pfm6gapgm7dhyjs9y5yd7";
2015-04-06 09:56:54 +00:00
};
buildInputs = [ e2fsprogs ];
installPhase = ''
mkdir -p $out/bin
cp zerofree $out/bin
'';
meta = {
2016-07-14 03:10:56 +00:00
homepage = http://frippery.org/uml/index.html;
description = "Zero free blocks from ext2, ext3 and ext4 file-systems";
2015-04-06 09:56:54 +00:00
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.theuni ];
};
}