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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://public.pengutronix.de/software/genimage/genimage-${version}.tar.xz";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-hp+WYtO3eMabHR/nDfZY4cnpCu2iart1P2/lXosMbnM=";
|
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; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|