package.nix (1191B)
1 { 2 lib, 3 stdenv, 4 fetchFromSourcehut, 5 installShellFiles, 6 hdf5, 7 libheif, 8 libpng, 9 libjpeg, 10 libtiff, 11 libwebp, 12 fftwFloat, 13 libx11, 14 gsl, 15 }: 16 17 stdenv.mkDerivation (finalAttrs: { 18 pname = "imscript"; 19 version = "0-unstable-2026-05-12"; 20 21 __structuredAttrs = true; 22 23 src = fetchFromSourcehut { 24 owner = "~coco"; 25 repo = "imscript"; 26 rev = "a383764115b15f89d63e86118c1b0da94cc3fcb8"; 27 hash = "sha256-7O53lDU6s4CzP1D4SZk2x7Y+ZLyUQeD/YbDHUzXxLBQ="; 28 }; 29 30 nativeBuildInputs = [ installShellFiles ]; 31 32 buildInputs = [ 33 hdf5 34 libheif 35 libpng 36 libjpeg 37 libtiff 38 libwebp 39 fftwFloat 40 libx11 41 gsl 42 ]; 43 44 makeFlags = [ 45 "DISABLE_HDF5=1" 46 "full" 47 ]; 48 49 env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 50 51 enableParallelBuilding = true; 52 53 installPhase = '' 54 install -Dm755 bin/* -t $out/bin 55 installManPage doc/man/man1/* 56 ''; 57 58 meta = { 59 description = "A collection of small and standalone utilities for image processing"; 60 homepage = "http://gabarro.org/ccn/itut/i.html"; 61 license = lib.licenses.agpl3Only; 62 maintainers = [ lib.maintainers.sikmir ]; 63 platforms = lib.platforms.unix; 64 }; 65 })
