1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/development/libraries/farbfeld/default.nix
2018-04-19 11:51:06 +02:00

28 lines
724 B
Nix

{ stdenv, fetchgit, makeWrapper, file, libpng, libjpeg }:
stdenv.mkDerivation rec {
name = "farbfeld-${version}";
version = "4";
src = fetchgit {
url = "https://git.suckless.org/farbfeld";
rev = "refs/tags/${version}";
sha256 = "0pkmkvv5ggpzqwqdchd19442x8gh152xy5z1z13ipfznhspsf870";
};
buildInputs = [ libpng libjpeg ];
nativeBuildInputs = [ makeWrapper ];
installFlags = "PREFIX=/ DESTDIR=$(out)";
postInstall = ''
wrapProgram "$out/bin/2ff" --prefix PATH : "${file}/bin"
'';
meta = with stdenv.lib; {
description = "Suckless image format with conversion tools";
license = licenses.isc;
platforms = platforms.linux;
maintainers = with maintainers; [ pSub ];
};
}