nur-packages

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

default.nix (936B)


      1 { lib, stdenv, fetchFromSourcehut, installShellFiles
      2 , libpng, libjpeg, libtiff, libwebp, fftwFloat, libX11, gsl }:
      3 
      4 stdenv.mkDerivation rec {
      5   pname = "imscript";
      6   version = "2022-07-27";
      7 
      8   src = fetchFromSourcehut {
      9     owner = "~coco";
     10     repo = "imscript";
     11     rev = "258369bbb75422a3938041c8b11626e2c6e60088";
     12     hash = "sha256-8iU4dEwKHWXACLUSAzGP7ykeWmZBdkydiwUg8ip1bBQ=";
     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/*
     26   '';
     27 
     28   meta = with lib; {
     29     description = "A collection of small and standalone utilities for image processing";
     30     inherit (src.meta) homepage;
     31     license = licenses.agpl3;
     32     maintainers = [ maintainers.sikmir ];
     33     platforms = platforms.unix;
     34   };
     35 }