commit bc61cd50ae7bf3ae6bd231652c314da83b9fb0c6 parent 91b5d8fb52527f6edbb7af3d421c7f76d532bb5a Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sun, 12 Apr 2020 03:50:35 +0300 Add xfractint Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/tools/xfractint/default.nix | | | 30 | ++++++++++++++++++++++++++++++ |
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -102,6 +102,7 @@ lib.makeScope newScope ( inherit sources mercantile pymbtiles; }; webster = callPackage ./data/dicts/webster {}; + xfractint = callPackage ./tools/xfractint {}; perlPackages = ( callPackage ./perl-packages.nix {} diff --git a/pkgs/tools/xfractint/default.nix b/pkgs/tools/xfractint/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, xlibsWrapper }: + +stdenv.mkDerivation rec { + pname = "xfractint"; + version = "20.04p14"; + + src = fetchurl { + url = "https://fractint.org/ftp/current/linux/${pname}-${version}.tar.gz"; + sha256 = "0jdqr639z862qrswwk5srmv4fj5d7rl8kcscpn6mlkx4jvjmca0f"; + }; + + buildInputs = [ xlibsWrapper ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + postPatch = '' + substituteInPlace Makefile \ + --replace "/usr/bin/gcc" "gcc" \ + --replace "/usr/bin/install" "install" + ''; + + meta = with stdenv.lib; { + description = "Fractal generator"; + homepage = "https://fractint.org/"; + license = licenses.free; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.linux; + skip.ci = true; + }; +}