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 {
|
2019-08-15 12:41:18 +00:00
|
|
|
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 ];
|
2018-04-19 09:51:06 +00:00
|
|
|
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)" ];
|
2018-04-19 09:51:06 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/2ff" --prefix PATH : "${file}/bin"
|
|
|
|
'';
|
2016-01-08 19:22:07 +00:00
|
|
|
|
2021-01-21 17:00:13 +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/";
|
2017-04-30 17:59:05 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|