nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (888B)


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