mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 14:14:20 +00:00
Merge pull request #184921 from wegank/rawtherapee-darwin
rawtherapee: add darwin support
This commit is contained in:
commit
af761d96e2
@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, pixman, libpthreadstubs, gtkmm3, libXau
|
||||
, libXdmcp, lcms2, libiptcdata, libcanberra-gtk3, fftw, expat, pcre, libsigcxx, wrapGAppsHook
|
||||
, lensfun, librsvg
|
||||
, lensfun, librsvg, gtk-mac-integration
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -17,11 +17,17 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
|
||||
|
||||
# This patch is upstream; remove it in 5.9.
|
||||
patches = [ ./fix-6324.patch ];
|
||||
patches = [ ./fix-6324.patch ]
|
||||
# Disable upstream-enforced bundling on macOS.
|
||||
++ lib.optionals stdenv.isDarwin [ ./do-not-bundle.patch ];
|
||||
|
||||
buildInputs = [
|
||||
pixman libpthreadstubs gtkmm3 libXau libXdmcp
|
||||
lcms2 libiptcdata libcanberra-gtk3 fftw expat pcre libsigcxx lensfun librsvg
|
||||
lcms2 libiptcdata fftw expat pcre libsigcxx lensfun librsvg
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
libcanberra-gtk3
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
gtk-mac-integration
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
@ -40,6 +46,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = "http://www.rawtherapee.com/";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ jcumming mahe ];
|
||||
platforms = with lib.platforms; linux;
|
||||
platforms = with lib.platforms; unix;
|
||||
};
|
||||
}
|
||||
|
13
pkgs/applications/graphics/rawtherapee/do-not-bundle.patch
Normal file
13
pkgs/applications/graphics/rawtherapee/do-not-bundle.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0a55ca6d5..68c059aa5 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -233,6 +233,6 @@ if(WIN32 OR APPLE)
|
||||
endif()
|
||||
- set(BUILD_BUNDLE ON FORCE)
|
||||
+ set(BUILD_BUNDLE OFF)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED BUNDLE_BASE_INSTALL_DIR)
|
||||
- if(APPLE)
|
||||
+ if(FALSE)
|
Loading…
Reference in New Issue
Block a user