about summary refs log tree commit diff
path: root/pkgs/development/libraries/qscintilla
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2023-09-20 19:08:53 +0300
committerDoron Behar <doron.behar@gmail.com>2023-09-21 11:45:35 +0300
commit138eebe549f5ab0d4763fe560c47ca769f56ac28 (patch)
tree2718c8cadf880ac8e21bbe27cf57baa8c14cef5e /pkgs/development/libraries/qscintilla
parent8ace65ff3d7696b7a03ea9583b39df27b3153984 (diff)
qscintilla: move to qt{5,6}Packages.nix
Since it is a somewhat common library, with support for multiple qt
versions, it is safer to put each version of it in libsForQt5 and
qt6Packages attribute sets. Also, it is cleaner to put the darwin
if-else inside the expression, in relation to https://github.com/NixOS/rfcs/pull/140 .
Diffstat (limited to 'pkgs/development/libraries/qscintilla')
-rw-r--r--pkgs/development/libraries/qscintilla/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/qscintilla/default.nix b/pkgs/development/libraries/qscintilla/default.nix
index 5a2b00c54e3e5..394446feb0170 100644
--- a/pkgs/development/libraries/qscintilla/default.nix
+++ b/pkgs/development/libraries/qscintilla/default.nix
@@ -6,9 +6,16 @@
 , qtmacextras ? null
 , qmake
 , fixDarwinDylibNames
+, darwin
 }:
 
-stdenv.mkDerivation rec {
+let
+  stdenv' = if stdenv.isDarwin then
+    darwin.apple_sdk_11_0.stdenv
+  else
+    stdenv
+  ;
+in stdenv'.mkDerivation rec {
   pname = "qscintilla-qt5";
   version = "2.13.2";