2018-04-19 10:51:06 +01:00
|
|
|
{ stdenv, fetchgit, 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
|
|
|
|
|
|
|
src = fetchgit {
|
2018-04-11 14:09:51 +01:00
|
|
|
url = "https://git.suckless.org/farbfeld";
|
2016-01-08 19:22:07 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2018-04-11 14:30:54 +01:00
|
|
|
sha256 = "0pkmkvv5ggpzqwqdchd19442x8gh152xy5z1z13ipfznhspsf870";
|
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
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "PREFIX=/" "DESTDIR=$(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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Suckless image format with conversion tools";
|
2017-04-30 18:59:05 +01:00
|
|
|
license = licenses.isc;
|
2016-01-08 19:22:07 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|