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-2025-09-19"; 20 21 __structuredAttrs = true; 22 23 src = fetchFromSourcehut { 24 owner = "~coco"; 25 repo = "imscript"; 26 rev = "3ef0973bb1dfc58452f4b896141d958729ca1693"; 27 hash = "sha256-Y4hekufXsTLBs/EcYuBDqgpAS0P0yoDU8Oiz4N+vXFQ="; 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 })
