lol

genext2fs: 1.4.1 > 1.5.0

Also, enable libarchive support and run the tests

authored by

Alexander Bakker and committed by
Bjørn Forsman
04cd699d 3da14813

+20 -10
+20 -10
pkgs/tools/filesystems/genext2fs/default.nix
··· 1 - { lib, stdenv, fetchurl }: 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook, libarchive }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "genext2fs"; 5 - version = "1.4.1"; 5 + version = "1.5.0"; 6 6 7 - src = fetchurl { 8 - url = "mirror://sourceforge/genext2fs/genext2fs-${version}.tar.gz"; 9 - sha256 = "1z7czvsf3ircvz2cw1cf53yifsq29ljxmj15hbgc79l6gbxbnka0"; 7 + src = fetchFromGitHub { 8 + owner = "bestouff"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "sha256-9LAU5XuCwwEhU985MzZ2X+YYibvyECULQSn9X2jdj5I="; 10 12 }; 11 13 12 - # https://sourceforge.net/p/genext2fs/bugs/2/ 13 - # Will be fixed in the next release, whenever this happens 14 - postPatch = '' 15 - sed -e 's@4 [*] (EXT2_TIND_BLOCK+1)@-1+&@' -i genext2fs.c 14 + nativeBuildInputs = [ autoreconfHook ]; 15 + buildInputs = [ 16 + libarchive 17 + ]; 18 + 19 + configureFlags = [ 20 + "--enable-libarchive" 21 + ]; 22 + 23 + doCheck = true; 24 + checkPhase = '' 25 + ./test.sh 16 26 ''; 17 27 18 28 meta = with lib; { 19 - homepage = "http://genext2fs.sourceforge.net/"; 29 + homepage = "https://github.com/bestouff/genext2fs"; 20 30 description = "A tool to generate ext2 filesystem images without requiring root privileges"; 21 31 license = licenses.gpl2; 22 32 platforms = platforms.all;