depot/third_party/nixpkgs/pkgs/tools/filesystems/genimage/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

31 lines
893 B
Nix

{ lib, stdenv, fetchurl, pkg-config, libconfuse, gettext }:
stdenv.mkDerivation rec {
pname = "genimage";
version = "16";
src = fetchurl {
url = "https://public.pengutronix.de/software/genimage/genimage-${version}.tar.xz";
sha256 = "sha256-hp+WYtO3eMabHR/nDfZY4cnpCu2iart1P2/lXosMbnM=";
};
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 ];
};
}