summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-01-07 13:04:31 +0100
committerJan Tojnar <jtojnar@gmail.com>2021-01-07 13:04:31 +0100
commitf19eb635b4585f6ba4f9f4c3e9e07f56623446f5 (patch)
tree4d64a15e34e8a2b54466ba165297a6bb08bfb280 /pkgs/tools/graphics
parent0e4e47512d709e93c35fa575dd82e3e6ce4f884d (diff)
parent2be707eca80b573c931007de78c936d49ab45395 (diff)
Merge branch 'master' into staging-next
https://github.com/NixOS/nixpkgs/commit/b04fc593e7b55fe1f74421b11589f12a339c92e2 seems to have accidentally changed mkDerivation function for dfilemanager and solarus-quest-editor so I have reverted that here.
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/fim/default.nix10
-rw-r--r--pkgs/tools/graphics/gifsicle/default.nix5
-rw-r--r--pkgs/tools/graphics/luxcorerender/default.nix29
3 files changed, 24 insertions, 20 deletions
diff --git a/pkgs/tools/graphics/fim/default.nix b/pkgs/tools/graphics/fim/default.nix
index 6a3d9a29db37..9a3163951d24 100644
--- a/pkgs/tools/graphics/fim/default.nix
+++ b/pkgs/tools/graphics/fim/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, autoconf, automake, pkgconfig
+{ gcc9Stdenv, fetchurl, autoconf, automake, pkgconfig, lib
, perl, flex, bison, readline, libexif
, x11Support ? true, SDL
, svgSupport ? true, inkscape
@@ -9,7 +9,7 @@
, pngSupport ? true, libpng
}:
-stdenv.mkDerivation rec {
+gcc9Stdenv.mkDerivation rec {
pname = "fim";
version = "0.6";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake pkgconfig ];
- buildInputs = with stdenv.lib;
+ buildInputs = with lib;
[ perl flex bison readline libexif ]
++ optional x11Support SDL
++ optional svgSupport inkscape
@@ -35,9 +35,9 @@ stdenv.mkDerivation rec {
++ optional jpegSupport libjpeg
++ optional pngSupport libpng;
- NIX_CFLAGS_COMPILE = stdenv.lib.optionalString x11Support "-lSDL";
+ NIX_CFLAGS_COMPILE = lib.optionalString x11Support "-lSDL";
- meta = with stdenv.lib; {
+ meta = with lib; {
description = "A lightweight, highly customizable and scriptable image viewer";
longDescription = ''
FIM (Fbi IMproved) is a lightweight, console based image viewer that aims
diff --git a/pkgs/tools/graphics/gifsicle/default.nix b/pkgs/tools/graphics/gifsicle/default.nix
index 007ba0f99720..72220fab4803 100644
--- a/pkgs/tools/graphics/gifsicle/default.nix
+++ b/pkgs/tools/graphics/gifsicle/default.nix
@@ -1,4 +1,7 @@
-{ stdenv, fetchurl, xorgproto, libXt, libX11, gifview ? false, static ? false }:
+{ stdenv, fetchurl, xorgproto, libXt, libX11
+, gifview ? false
+, static ? stdenv.hostPlatform.isStatic
+}:
with stdenv.lib;
diff --git a/pkgs/tools/graphics/luxcorerender/default.nix b/pkgs/tools/graphics/luxcorerender/default.nix
index 29aea9d50970..edce992a6037 100644
--- a/pkgs/tools/graphics/luxcorerender/default.nix
+++ b/pkgs/tools/graphics/luxcorerender/default.nix
@@ -4,7 +4,7 @@
, dbus, doxygen, qt5, c-blosc, libGLU, gnome3, dconf, gtk3, pcre
, bison, flex, libpthreadstubs, libX11
, embree2, makeWrapper, gsettings-desktop-schemas, glib
-, withOpenCL ? true , opencl-headers, ocl-icd, opencl-clhpp
+, withOpenCL ? true , opencl-headers, ocl-icd, opencl-clhpp, rocm-opencl-runtime
}:
let
@@ -31,18 +31,18 @@ in stdenv.mkDerivation {
};
nativeBuildInputs = [ cmake flex bison doxygen makeWrapper pkg-config ];
- buildInputs =
- [ embree2 zlib boost_static libjpeg
- libtiff libpng ilmbase freetype openexr openimageio
- tbb qt5.full c-blosc libGLU pcre
- libX11 libpthreadstubs python libXdmcp libxkbcommon
- epoxy at-spi2-core dbus
- # needed for GSETTINGS_SCHEMAS_PATH
- gsettings-desktop-schemas glib gtk3
- # needed for XDG_ICON_DIRS
- gnome3.adwaita-icon-theme
- (stdenv.lib.getLib dconf)
- ] ++ stdenv.lib.optionals withOpenCL [opencl-headers ocl-icd opencl-clhpp];
+ buildInputs = [
+ embree2 zlib boost_static libjpeg
+ libtiff libpng ilmbase freetype openexr openimageio
+ tbb qt5.full c-blosc libGLU pcre
+ libX11 libpthreadstubs python libXdmcp libxkbcommon
+ epoxy at-spi2-core dbus
+ # needed for GSETTINGS_SCHEMAS_PATH
+ gsettings-desktop-schemas glib gtk3
+ # needed for XDG_ICON_DIRS
+ gnome3.adwaita-icon-theme
+ (stdenv.lib.getLib dconf)
+ ] ++ stdenv.lib.optionals withOpenCL [ opencl-headers ocl-icd opencl-clhpp rocm-opencl-runtime ];
cmakeFlags = [
"-DOpenEXR_Iex_INCLUDE_DIR=${openexr.dev}/include/OpenEXR"
@@ -55,7 +55,8 @@ in stdenv.mkDerivation {
"-DEMBREE_LIBRARY=${embree2}/lib/libembree.so"
"-DBoost_PYTHON_LIBRARY_RELEASE=${boost_static}/lib/libboost_python3-mt.so"
] ++ stdenv.lib.optional withOpenCL
- "-DOPENCL_INCLUDE_DIR=${opencl-headers}/include";
+ "-DOPENCL_INCLUDE_DIR=${opencl-headers}/include";
+
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -isystem ${python}/include/python${python.pythonVersion}"
NIX_LDFLAGS+=" -lpython3"