2022-10-21 18:38:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libconfuse, gettext }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "genimage";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://public.pengutronix.de/software/genimage/genimage-${version}.tar.xz";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-68P4hsTYAGTdbG1ePC6Y5aZwB4JkEIzi+Jraii4T/t0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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"
|
2022-06-16 17:23:12 +00:00
|
|
|
cp -v README.rst "$docdir"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://git.pengutronix.de/cgit/genimage";
|
|
|
|
description = "Generate filesystem images from directory trees";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "genimage";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|