default.nix (1067B)
1 { lib 2 , stdenv 3 , fetchFromSourcehut 4 , installShellFiles 5 , libpng 6 , libjpeg 7 , libtiff 8 , libwebp 9 , fftwFloat 10 , libX11 11 , gsl 12 }: 13 14 stdenv.mkDerivation (finalAttrs: { 15 pname = "imscript"; 16 version = "0-unstable-2024-03-18"; 17 18 src = fetchFromSourcehut { 19 owner = "~coco"; 20 repo = "imscript"; 21 rev = "a98d2ccbbba678ace9b35d6fe13bca772f1c0e60"; 22 hash = "sha256-+jaerzq9RnYry98xoVY6QSSQZH+rwVcn0mLwymw3ieM="; 23 }; 24 25 nativeBuildInputs = [ installShellFiles ]; 26 27 buildInputs = [ libpng libjpeg libtiff libwebp fftwFloat libX11 gsl ]; 28 29 makeFlags = [ "DISABLE_HDF5=1" "full" ]; 30 31 env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 32 33 enableParallelBuilding = true; 34 35 installPhase = '' 36 install -Dm755 bin/* -t $out/bin 37 installManPage doc/man/man1/* 38 ''; 39 40 meta = with lib; { 41 description = "A collection of small and standalone utilities for image processing"; 42 homepage = "http://gabarro.org/ccn/itut/i.html"; 43 license = licenses.agpl3Only; 44 maintainers = [ maintainers.sikmir ]; 45 platforms = platforms.unix; 46 }; 47 })