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

30 lines
784 B
Nix
Raw Normal View History

2021-02-05 13:36:06 +00:00
{ lib, stdenv, fetchurl, makeWrapper, file, libpng, libjpeg }:
2016-01-08 19:22:07 +00:00
stdenv.mkDerivation rec {
pname = "farbfeld";
2018-04-11 13:30:54 +00:00
version = "4";
2016-01-08 19:22:07 +00:00
2021-02-05 13:36:06 +00:00
src = fetchurl {
url = "https://dl.suckless.org/farbfeld/farbfeld-${version}.tar.gz";
sha256 = "0ap7rcngffhdd57jw9j22arzkbrhwh0zpxhwbdfwl8fixlhmkpy7";
2016-01-08 19:22:07 +00:00
};
buildInputs = [ libpng libjpeg ];
nativeBuildInputs = [ makeWrapper ];
2016-01-08 19:22:07 +00:00
2021-11-13 12:34:03 +00:00
makeFlags = [ "CC:=$(CC)" ];
2021-02-05 13:36:06 +00:00
installFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram "$out/bin/2ff" --prefix PATH : "${file}/bin"
'';
2016-01-08 19:22:07 +00:00
meta = with lib; {
2016-01-08 19:22:07 +00:00
description = "Suckless image format with conversion tools";
2021-02-05 13:36:06 +00:00
homepage = "https://tools.suckless.org/farbfeld/";
license = licenses.isc;
2021-02-05 13:36:06 +00:00
platforms = platforms.unix;
2016-01-08 19:22:07 +00:00
maintainers = with maintainers; [ pSub ];
};
}