2022-07-27 14:37:54 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libarchive }:
|
2007-05-11 23:26:18 +01:00
|
|
|
|
2021-08-12 19:49:29 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "genext2fs";
|
2022-07-27 14:37:54 +01:00
|
|
|
version = "1.5.0";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2022-07-27 14:37:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bestouff";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-9LAU5XuCwwEhU985MzZ2X+YYibvyECULQSn9X2jdj5I=";
|
2007-05-11 23:26:18 +01:00
|
|
|
};
|
2010-01-18 15:40:23 +00:00
|
|
|
|
2022-07-27 14:37:54 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [
|
|
|
|
libarchive
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-libarchive"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
./test.sh
|
2017-11-12 20:36:58 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-07-27 14:37:54 +01:00
|
|
|
homepage = "https://github.com/bestouff/genext2fs";
|
2010-01-18 15:40:23 +00:00
|
|
|
description = "A tool to generate ext2 filesystem images without requiring root privileges";
|
2015-02-11 19:06:14 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2010-01-18 15:40:23 +00:00
|
|
|
};
|
2007-05-11 23:26:18 +01:00
|
|
|
}
|