nur-packages

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

default.nix (1162B)


      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-2024-07-25";
     20 
     21   src = fetchFromSourcehut {
     22     owner = "~coco";
     23     repo = "imscript";
     24     rev = "29ced5a5472f05b8e07cb621bf8693ee2916b354";
     25     hash = "sha256-YDDxzEiCqCaObFUsRpmMeRD0IqE3iTPbo90eYWvySkw=";
     26   };
     27 
     28   nativeBuildInputs = [ installShellFiles ];
     29 
     30   buildInputs = [
     31     hdf5
     32     libheif
     33     libpng
     34     libjpeg
     35     libtiff
     36     libwebp
     37     fftwFloat
     38     libX11
     39     gsl
     40   ];
     41 
     42   makeFlags = [
     43     "DISABLE_HDF5=1"
     44     "full"
     45   ];
     46 
     47   env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
     48 
     49   enableParallelBuilding = true;
     50 
     51   installPhase = ''
     52     install -Dm755 bin/* -t $out/bin
     53     installManPage doc/man/man1/*
     54   '';
     55 
     56   meta = {
     57     description = "A collection of small and standalone utilities for image processing";
     58     homepage = "http://gabarro.org/ccn/itut/i.html";
     59     license = lib.licenses.agpl3Only;
     60     maintainers = [ lib.maintainers.sikmir ];
     61     platforms = lib.platforms.unix;
     62   };
     63 })