tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / ge / genimage / package.nix
blob6725fa71abf35bda538191fab34712492bb32be5
2   lib,
3   stdenv,
4   fetchurl,
5   autoreconfHook,
6   pkg-config,
7   libconfuse,
8   gettext,
9 }:
11 stdenv.mkDerivation rec {
12   pname = "genimage";
13   version = "18";
15   src = fetchurl {
16     url = "https://public.pengutronix.de/software/genimage/genimage-${version}.tar.xz";
17     sha256 = "sha256-68P4hsTYAGTdbG1ePC6Y5aZwB4JkEIzi+Jraii4T/t0=";
18   };
20   nativeBuildInputs = [
21     autoreconfHook
22     pkg-config
23   ];
24   buildInputs = [
25     libconfuse
26     gettext
27   ];
29   postInstall = ''
30     # As there is no manpage or built-in --help, add the README file for
31     # documentation.
32     docdir="$out/share/doc/genimage"
33     mkdir -p "$docdir"
34     cp -v README.rst "$docdir"
35   '';
37   meta = with lib; {
38     broken = stdenv.hostPlatform.isDarwin;
39     homepage = "https://git.pengutronix.de/cgit/genimage";
40     description = "Generate filesystem images from directory trees";
41     license = licenses.gpl2Plus;
42     platforms = platforms.all;
43     maintainers = [ maintainers.bjornfor ];
44     mainProgram = "genimage";
45   };