depot/third_party/nixpkgs/pkgs/tools/filesystems/genimage/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

31 lines
894 B
Nix

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