2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2007-05-12 00:26:18 +02:00
|
|
|
|
2021-08-12 20:49:29 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "genext2fs";
|
|
|
|
version = "1.4.1";
|
2021-01-19 22:20:11 +01:00
|
|
|
|
2007-05-12 00:26:18 +02:00
|
|
|
src = fetchurl {
|
2021-08-12 20:49:29 +02:00
|
|
|
url = "mirror://sourceforge/genext2fs/genext2fs-${version}.tar.gz";
|
2007-05-12 00:26:18 +02:00
|
|
|
sha256 = "1z7czvsf3ircvz2cw1cf53yifsq29ljxmj15hbgc79l6gbxbnka0";
|
|
|
|
};
|
2010-01-18 16:40:23 +01:00
|
|
|
|
2017-11-12 21:36:58 +01:00
|
|
|
# https://sourceforge.net/p/genext2fs/bugs/2/
|
|
|
|
# Will be fixed in the next release, whenever this happens
|
|
|
|
postPatch = ''
|
|
|
|
sed -e 's@4 [*] (EXT2_TIND_BLOCK+1)@-1+&@' -i genext2fs.c
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://genext2fs.sourceforge.net/";
|
2010-01-18 16:40:23 +01:00
|
|
|
description = "A tool to generate ext2 filesystem images without requiring root privileges";
|
2015-02-11 20:06:14 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2010-01-18 16:40:23 +01:00
|
|
|
};
|
2007-05-12 00:26:18 +02:00
|
|
|
}
|