2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libconfuse, gettext }:
|
2016-12-08 10:37:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "genimage";
|
2016-12-08 10:37:08 +00:00
|
|
|
version = "9";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://public.pengutronix.de/software/genimage/genimage-${version}.tar.xz";
|
2016-12-08 10:37:08 +00:00
|
|
|
sha256 = "0y4h8x8lqxam8m90rdfq8cg5137kvilxr3d1qzddpx7nxpvmmwv9";
|
|
|
|
};
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-06-07 01:57:03 +01: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"
|
|
|
|
cp -v README "$docdir"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|