summary refs log tree commit diff
path: root/pkgs/tools/filesystems/zerofree/default.nix
blob: 4e027a53ffcb8c4e588823e7bd83216e495cb689 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, e2fsprogs }:

stdenv.mkDerivation rec {
  name = "zerofree-1.0.3";

  src = fetchurl {
    url = "http://intgat.tigress.co.uk/rmy/uml/zerofree-1.0.3.tgz";
    sha256 = "3acfda860be0f0ddcb5c982ff3b4475b1ee8cc35a90ae2a910e93261dbe0ccf6";
  };

  buildInputs = [ e2fsprogs ];

  installPhase = ''
    mkdir -p $out/bin
    cp zerofree $out/bin
'';

  meta = {
    homepage = http://intgat.tigress.co.uk/rmy/uml/index.html;
    description = "Zero free blocks from ext2, ext3 and ext4 file-systems";
    platforms = stdenv.lib.platforms.linux;
    maintainers = [ stdenv.lib.maintainers.theuni ];
  };
}