nur-packages

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

default.nix (980B)


      1 { lib, stdenv, fetchfossil, libGL, libX11, SDL, ghostscript }:
      2 
      3 stdenv.mkDerivation {
      4   pname = "farbfeld-utils";
      5   version = "2022-07-12";
      6 
      7   src = fetchfossil {
      8     url = "http://zzo38computer.org/fossil/farbfeld.ui";
      9     rev = "76efb47dff46e97052f3215d40c2b7cfa277d048";
     10     sha256 = "sha256-guxTyZmi6w4jrGp+sdLddAur+PJUV3sUoyXC0lmC1LA=";
     11   };
     12 
     13   buildInputs = [ libGL libX11 SDL ghostscript ];
     14 
     15   buildPhase = ''
     16     runHook preBuild
     17 
     18     mkdir -p $out/bin
     19     $CC -c lodepng.c
     20     find . -name '*.c' -exec grep 'gcc' {} + -print0 | \
     21       awk -F: '{print $2}' | sed 's#~/bin#$out/bin#;s#gcc#$CC#;s#/usr/lib/libgs.so.9#-lgs#' | xargs -0 sh -c
     22 
     23     runHook postBuild
     24   '';
     25 
     26   dontInstall = true;
     27 
     28   meta = with lib; {
     29     description = "Collection of utilities for farbfeld picture format";
     30     homepage = "http://zzo38computer.org/fossil/farbfeld.ui/home";
     31     license = licenses.publicDomain;
     32     maintainers = [ maintainers.sikmir ];
     33     platforms = platforms.unix;
     34   };
     35 }