nixpkgs/pkgs/development/libraries/farbfeld/default.nix

28 lines
724 B
Nix
Raw Normal View History

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