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 13:41:18 +01:00
|
|
|
pname = "farbfeld";
|
2018-04-11 14:30:54 +01: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 10:51:06 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2016-01-08 19:22:07 +00:00
|
|
|
|
2021-02-05 13:36:06 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2018-04-19 10:51:06 +01: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 18:59:05 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|