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