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