2019-08-09 17:42:33 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpng
|
|
|
|
, gsl
|
|
|
|
, libsndfile
|
|
|
|
, lzo
|
|
|
|
, qmake
|
|
|
|
, qttools
|
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, withOpenCL ? true
|
|
|
|
, opencl-clhpp ? null
|
|
|
|
, ocl-icd ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert withOpenCL -> opencl-clhpp != null;
|
|
|
|
assert withOpenCL -> ocl-icd != null;
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mandelbulber";
|
2021-01-22 16:08:40 +01:00
|
|
|
version = "2.24";
|
2019-08-09 17:42:33 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "buddhi1980";
|
|
|
|
repo = "mandelbulber2";
|
|
|
|
rev = version;
|
2021-01-22 16:08:40 +01:00
|
|
|
sha256 = "sha256-JgpYGzD2FsqcCWnOKBiVCxUKqLfT4S++uUBZekhGWmA=";
|
2019-08-09 17:42:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
qttools
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
libpng
|
|
|
|
gsl
|
|
|
|
libsndfile
|
|
|
|
lzo
|
|
|
|
] ++ lib.optionals withOpenCL [
|
|
|
|
opencl-clhpp
|
|
|
|
ocl-icd
|
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/mandelbulber2";
|
|
|
|
|
|
|
|
qmakeFlags = [
|
2021-01-24 10:19:10 +01:00
|
|
|
"SHARED_PATH=${placeholder "out"}"
|
2019-08-09 17:42:33 +02:00
|
|
|
(if withOpenCL
|
|
|
|
then "qmake/mandelbulber-opencl.pro"
|
|
|
|
else "qmake/mandelbulber.pro")
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A 3D fractal rendering engine";
|
|
|
|
longDescription = "Mandelbulber creatively generates three-dimensional fractals. Explore trigonometric, hyper-complex, Mandelbox, IFS, and many other 3D fractals.";
|
|
|
|
homepage = "https://mandelbulber.com";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kovirobi ];
|
|
|
|
};
|
|
|
|
}
|