nur-packages

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

default.nix (785B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchurl,
      5   xorg,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "xfractint";
     10   version = "20.04p16";
     11 
     12   src = fetchurl {
     13     url = "https://fractint.org/ftp/current/linux/xfractint-${finalAttrs.version}.tar.gz";
     14     hash = "sha256-TlQBz+wOb/odqzjjwXfhRFdyCWy+VUIAxRLt7qI8R60=";
     15   };
     16 
     17   buildInputs = [
     18     xorg.libX11
     19     xorg.libXft
     20   ];
     21 
     22   makeFlags = [ "PREFIX=$(out)" ];
     23 
     24   postPatch = ''
     25     substituteInPlace Makefile \
     26       --replace-fail "/usr/bin/gcc" "gcc" \
     27       --replace-fail "/usr/bin/install" "install"
     28   '';
     29 
     30   meta = {
     31     description = "Fractal generator";
     32     homepage = "https://fractint.org/";
     33     license = lib.licenses.free;
     34     maintainers = [ lib.maintainers.sikmir ];
     35     platforms = lib.platforms.linux;
     36     skip.ci = true;
     37   };
     38 })