nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 9b0618165a5fda38e07a50501e8a3a547d17d051
parent edd6056ceb3c5569447f963d627ddf4fa863cb83
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat,  9 Jan 2021 14:33:46 +0300

Add lel

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/tools/graphics/lel/default.nix | 32++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -181,6 +181,7 @@ lib.makeScope newScope ( imgdecode = callPackage ./tools/geo/imgdecode { }; ish = callPackage ./tools/networking/ish { }; lazyscraper = callPackage ./tools/text/lazyscraper { }; + lel = callPackage ./tools/graphics/lel { }; lsdreader = callPackage ./tools/dict/lsdreader { }; map-tiler = callPackage ./tools/geo/map-tiler { }; morse-talk = callPackage ./tools/morse-talk { }; diff --git a/pkgs/tools/graphics/lel/default.nix b/pkgs/tools/graphics/lel/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchgit, libX11, farbfeld, farbfeld-utils }: + +stdenv.mkDerivation rec { + pname = "lel"; + version = "0.2"; + + src = fetchgit { + url = "git://git.codemadness.org/lel"; + rev = version; + sha256 = "1c9gka3ka8j453z8ry50852hnvv5s0b5xjwg6807bj8d536n0jd7"; + }; + + postPatch = '' + substituteInPlace lel-open \ + --replace "jpg2ff" "${farbfeld}/bin/jpg2ff" \ + --replace "png2ff" "${farbfeld}/bin/png2ff" \ + --replace "gif2ff" "${farbfeld-utils}/bin/gif2ff" \ + --replace "lel" "$out/bin/lel" + ''; + + buildInputs = [ libX11 ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + meta = with stdenv.lib; { + description = "Farbfeld image viewer"; + homepage = "https://git.codemadness.org/lel/file/README.html"; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.linux; + }; +}