nixpkgs/pkgs/tools/filesystems/genext2fs/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

37 lines
810 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 = "Tool to generate ext2 filesystem images without requiring root privileges";
license = licenses.gpl2Only;
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
mainProgram = "genext2fs";
};
}