mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
04cd699d81
Also, enable libarchive support and run the tests
36 lines
777 B
Nix
36 lines
777 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libarchive }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "genext2fs";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bestouff";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9LAU5XuCwwEhU985MzZ2X+YYibvyECULQSn9X2jdj5I=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [
|
|
libarchive
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-libarchive"
|
|
];
|
|
|
|
doCheck = true;
|
|
checkPhase = ''
|
|
./test.sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/bestouff/genext2fs";
|
|
description = "A tool to generate ext2 filesystem images without requiring root privileges";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|