nur-packages

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

default.nix (935B)


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