2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, e2fsprogs }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zerofree";
|
|
|
|
version = "1.1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://frippery.org/uml/${pname}-${version}.tgz";
|
|
|
|
sha256 = "0rrqfa5z103ws89vi8kfvbks1cfs74ix6n1wb6vs582vnmhwhswm";
|
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.theuni ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|