uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
64
pkgs/applications/graphics/mandelbulber/default.nix
Normal file
64
pkgs/applications/graphics/mandelbulber/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ 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.27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "buddhi1980";
|
||||
repo = "mandelbulber2";
|
||||
rev = version;
|
||||
sha256 = "sha256-CNIt+DC3ZYyT8EY1t641y7jW7vn7Rr1PLOsy9bjKaDk=";
|
||||
};
|
||||
|
||||
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";
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue