2022-10-14 06:30:22 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
autoreconfHook,
|
|
|
|
pkg-config,
|
|
|
|
libconfuse,
|
|
|
|
gettext,
|
|
|
|
}:
|
2016-12-08 10:37:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "genimage";
|
2024-07-21 05:02:30 +00:00
|
|
|
version = "18";
|
2016-12-08 10:37:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://public.pengutronix.de/software/genimage/genimage-${version}.tar.xz";
|
2024-07-21 05:02:30 +00:00
|
|
|
sha256 = "sha256-68P4hsTYAGTdbG1ePC6Y5aZwB4JkEIzi+Jraii4T/t0=";
|
2016-12-08 10:37:08 +00:00
|
|
|
};
|
|
|
|
|
2022-10-14 06:30:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2018-06-07 00:57:03 +00:00
|
|
|
buildInputs = [
|
|
|
|
libconfuse
|
|
|
|
gettext
|
|
|
|
];
|
2016-12-08 10:37:08 +00:00
|
|
|
|
|
|
|
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-05-28 15:23:02 +00:00
|
|
|
cp -v README.rst "$docdir"
|
2016-12-08 10:37:08 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 13:22:26 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://git.pengutronix.de/cgit/genimage";
|
2016-12-08 10:37:08 +00:00
|
|
|
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";
|
2016-12-08 10:37:08 +00:00
|
|
|
};
|
|
|
|
}
|