1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 10:56:56 +00:00
nixpkgs/pkgs/tools/filesystems/zerofree/default.nix
2017-08-01 08:36:34 +02:00

26 lines
594 B
Nix

{ stdenv, fetchurl, e2fsprogs }:
stdenv.mkDerivation rec {
name = "zerofree-${version}";
version = "1.1.0";
src = fetchurl {
url = "http://frippery.org/uml/${name}.tgz";
sha256 = "059g29x5r1xj6wcj4xj85l8w6qrxyl86yqbybjqqz6nxz4falxzf";
};
buildInputs = [ e2fsprogs ];
installPhase = ''
mkdir -p $out/bin
cp zerofree $out/bin
'';
meta = {
homepage = https://frippery.org/uml/;
description = "Zero free blocks from ext2, ext3 and ext4 file-systems";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.theuni ];
};
}