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