nixpkgs/pkgs/by-name/ge/genimage/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1002 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchurl,
autoreconfHook,
pkg-config,
libconfuse,
gettext,
}:
stdenv.mkDerivation rec {
pname = "genimage";
2024-07-21 05:02:30 +00:00
version = "18";
src = fetchurl {
url = "https://public.pengutronix.de/software/genimage/genimage-${version}.tar.xz";
2024-07-21 05:02:30 +00:00
sha256 = "sha256-68P4hsTYAGTdbG1ePC6Y5aZwB4JkEIzi+Jraii4T/t0=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
libconfuse
gettext
];
postInstall = ''
# As there is no manpage or built-in --help, add the README file for
# documentation.
docdir="$out/share/doc/genimage"
mkdir -p "$docdir"
cp -v README.rst "$docdir"
'';
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
homepage = "https://git.pengutronix.de/cgit/genimage";
description = "Generate filesystem images from directory trees";
license = licenses.gpl2Plus;
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
2023-11-23 21:09:35 +00:00
mainProgram = "genimage";
};
}