mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{ 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";
|
|
version = "2.31-1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "buddhi1980";
|
|
repo = "mandelbulber2";
|
|
rev = version;
|
|
sha256 = "sha256-nyIFvFe86C2ciBDSNWn1yrBYTCm1dR7sZ5RFGoTPqvQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qmake
|
|
qttools
|
|
];
|
|
buildInputs = [
|
|
qtbase
|
|
qtmultimedia
|
|
libpng
|
|
gsl
|
|
libsndfile
|
|
lzo
|
|
] ++ lib.optionals withOpenCL [
|
|
opencl-clhpp
|
|
ocl-icd
|
|
];
|
|
|
|
sourceRoot = "${src.name}/mandelbulber2";
|
|
|
|
qmakeFlags = [
|
|
"SHARED_PATH=${placeholder "out"}"
|
|
(if withOpenCL
|
|
then "qmake/mandelbulber-opencl.pro"
|
|
else "qmake/mandelbulber.pro")
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A 3D fractal rendering engine";
|
|
mainProgram = "mandelbulber2";
|
|
longDescription = "Mandelbulber creatively generates three-dimensional fractals. Explore trigonometric, hyper-complex, Mandelbox, IFS, and many other 3D fractals.";
|
|
homepage = "https://mandelbulber.com";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ kovirobi ];
|
|
};
|
|
}
|