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