default.nix (962B)
1 { lib, stdenv, fetchFromSourcehut, installShellFiles 2 , libpng, libjpeg, libtiff, libwebp, fftwFloat, libX11, gsl }: 3 4 stdenv.mkDerivation (finalAttrs: { 5 pname = "imscript"; 6 version = "2023-07-17"; 7 8 src = fetchFromSourcehut { 9 owner = "~coco"; 10 repo = "imscript"; 11 rev = "a45d5956ae714beff132eb170a36e707792755b0"; 12 hash = "sha256-9SN3Vc70lFdJuODfA+lDLRurOhxcX5UcVlpo0oPDSuo="; 13 }; 14 15 nativeBuildInputs = [ installShellFiles ]; 16 17 buildInputs = [ libpng libjpeg libtiff libwebp fftwFloat libX11 gsl ]; 18 19 makeFlags = [ "DISABLE_HDF5=1" "full" ]; 20 21 enableParallelBuilding = true; 22 23 installPhase = '' 24 install -Dm755 bin/* -t $out/bin 25 installManPage doc/man/man1/* 26 ''; 27 28 meta = with lib; { 29 description = "A collection of small and standalone utilities for image processing"; 30 inherit (finalAttrs.src.meta) homepage; 31 license = licenses.agpl3; 32 maintainers = [ maintainers.sikmir ]; 33 platforms = platforms.unix; 34 }; 35 })