depot/third_party/nixpkgs/pkgs/tools/filesystems/genimage/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
859 B
Nix

{ stdenv, fetchurl, pkgconfig, libconfuse, gettext }:
stdenv.mkDerivation rec {
pname = "genimage";
version = "9";
src = fetchurl {
url = "https://public.pengutronix.de/software/genimage/genimage-${version}.tar.xz";
sha256 = "0y4h8x8lqxam8m90rdfq8cg5137kvilxr3d1qzddpx7nxpvmmwv9";
};
nativeBuildInputs = [ pkgconfig ];
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 "$docdir"
'';
meta = with stdenv.lib; {
homepage = "https://git.pengutronix.de/cgit/genimage";
description = "Generate filesystem images from directory trees";
license = licenses.gpl2Plus;
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
};
}