gegl: Format expression
This commit is contained in:
@@ -1,44 +1,49 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, vala
|
||||
, gi-docgen
|
||||
, gobject-introspection
|
||||
, glib
|
||||
, babl
|
||||
, libpng
|
||||
, llvmPackages
|
||||
, cairo
|
||||
, libjpeg
|
||||
, librsvg
|
||||
, lensfun
|
||||
, libspiro
|
||||
, maxflow
|
||||
, netsurf
|
||||
, pango
|
||||
, poly2tri-c
|
||||
, poppler
|
||||
, bzip2
|
||||
, json-glib
|
||||
, gettext
|
||||
, meson
|
||||
, ninja
|
||||
, libraw
|
||||
, gexiv2
|
||||
, libwebp
|
||||
, luajit
|
||||
, openexr
|
||||
, OpenCL
|
||||
, suitesparse
|
||||
, withLuaJIT ? lib.meta.availableOn stdenv.hostPlatform luajit
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
vala,
|
||||
gi-docgen,
|
||||
gobject-introspection,
|
||||
glib,
|
||||
babl,
|
||||
libpng,
|
||||
llvmPackages,
|
||||
cairo,
|
||||
libjpeg,
|
||||
librsvg,
|
||||
lensfun,
|
||||
libspiro,
|
||||
maxflow,
|
||||
netsurf,
|
||||
pango,
|
||||
poly2tri-c,
|
||||
poppler,
|
||||
bzip2,
|
||||
json-glib,
|
||||
gettext,
|
||||
meson,
|
||||
ninja,
|
||||
libraw,
|
||||
gexiv2,
|
||||
libwebp,
|
||||
luajit,
|
||||
openexr,
|
||||
OpenCL,
|
||||
suitesparse,
|
||||
withLuaJIT ? lib.meta.availableOn stdenv.hostPlatform luajit,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gegl";
|
||||
version = "0.4.48";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
"devdoc"
|
||||
];
|
||||
outputBin = "dev";
|
||||
|
||||
src = fetchurl {
|
||||
@@ -56,31 +61,35 @@ stdenv.mkDerivation rec {
|
||||
gi-docgen
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libpng
|
||||
cairo
|
||||
libjpeg
|
||||
librsvg
|
||||
lensfun
|
||||
libspiro
|
||||
maxflow
|
||||
netsurf.libnsgif
|
||||
pango
|
||||
poly2tri-c
|
||||
poppler
|
||||
bzip2
|
||||
libraw
|
||||
libwebp
|
||||
gexiv2
|
||||
openexr
|
||||
suitesparse
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
OpenCL
|
||||
] ++ lib.optionals stdenv.cc.isClang [
|
||||
llvmPackages.openmp
|
||||
] ++ lib.optionals withLuaJIT [
|
||||
luajit
|
||||
];
|
||||
buildInputs =
|
||||
[
|
||||
libpng
|
||||
cairo
|
||||
libjpeg
|
||||
librsvg
|
||||
lensfun
|
||||
libspiro
|
||||
maxflow
|
||||
netsurf.libnsgif
|
||||
pango
|
||||
poly2tri-c
|
||||
poppler
|
||||
bzip2
|
||||
libraw
|
||||
libwebp
|
||||
gexiv2
|
||||
openexr
|
||||
suitesparse
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
OpenCL
|
||||
]
|
||||
++ lib.optionals stdenv.cc.isClang [
|
||||
llvmPackages.openmp
|
||||
]
|
||||
++ lib.optionals withLuaJIT [
|
||||
luajit
|
||||
];
|
||||
|
||||
# for gegl-4.0.pc
|
||||
propagatedBuildInputs = [
|
||||
@@ -89,19 +98,21 @@ stdenv.mkDerivation rec {
|
||||
babl
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dmrg=disabled" # not sure what that is
|
||||
"-Dsdl2=disabled"
|
||||
"-Dpygobject=disabled"
|
||||
"-Dlibav=disabled"
|
||||
"-Dlibv4l=disabled"
|
||||
"-Dlibv4l2=disabled"
|
||||
# Disabled due to multiple vulnerabilities, see
|
||||
# https://github.com/NixOS/nixpkgs/pull/73586
|
||||
"-Djasper=disabled"
|
||||
] ++ lib.optionals (!withLuaJIT) [
|
||||
"-Dlua=disabled"
|
||||
];
|
||||
mesonFlags =
|
||||
[
|
||||
"-Dmrg=disabled" # not sure what that is
|
||||
"-Dsdl2=disabled"
|
||||
"-Dpygobject=disabled"
|
||||
"-Dlibav=disabled"
|
||||
"-Dlibv4l=disabled"
|
||||
"-Dlibv4l2=disabled"
|
||||
# Disabled due to multiple vulnerabilities, see
|
||||
# https://github.com/NixOS/nixpkgs/pull/73586
|
||||
"-Djasper=disabled"
|
||||
]
|
||||
++ lib.optionals (!withLuaJIT) [
|
||||
"-Dlua=disabled"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x tests/opencl/opencl_test.sh
|
||||
|
||||
Reference in New Issue
Block a user