commit 2c6488d6488c0fb0e7ca0df424abad49224debc8
parent 1049666292a672c10aea8b66e3876de2a847dc5b
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Sun, 17 Jan 2021 11:58:38 +0300
Add imscript
Diffstat:
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -180,6 +180,7 @@ lib.makeScope newScope (
gurl = callPackage ./tools/networking/gurl { };
hurl = callPackage ./tools/networking/hurl { };
imgdecode = callPackage ./tools/geo/imgdecode { };
+ imscript = callPackage ./tools/graphics/imscript { };
ish = callPackage ./tools/networking/ish { };
lazyscraper = callPackage ./tools/text/lazyscraper { };
lel = callPackage ./tools/graphics/lel { };
diff --git a/pkgs/tools/graphics/imscript/default.nix b/pkgs/tools/graphics/imscript/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchgit, libpng, libjpeg, libtiff, fftwFloat, libX11, gsl }:
+
+stdenv.mkDerivation {
+ pname = "imscript";
+ version = "2020-12-07";
+
+ src = fetchgit {
+ url = "https://git.sr.ht/~coco/imscript";
+ rev = "81aac71e3a26033b7bc52c3f7e114a259bc24624";
+ sha256 = "0k15y6gyn5fnk9v3rc28aw6q73ws67ixsl51bzrd1h2z4aclpmk7";
+ };
+
+ postPatch = ''
+ substituteInPlace src/iio.c \
+ --replace "#define I_CAN_HAS_LIBHDF5" ""
+ '';
+
+ buildInputs = [ libpng libjpeg libtiff fftwFloat libX11 gsl ];
+
+ makeFlags = [ "full" ];
+
+ installPhase = ''
+ install -Dm755 bin/* -t $out/bin
+ install -Dm644 doc/man/* -t $out/share/man/man1
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A collection of small and standalone utilities for image processing";
+ homepage = "https://git.sr.ht/~coco/imscript";
+ license = licenses.agpl3;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}