lol

Merge pull request #233657 from wegank/darwin-system-redo

darwin.apple_sdk_10_12.frameworks.System: init

authored by

Weijia Wang and committed by
GitHub
ad7fbd27 2eb13af5

+14 -10
+2 -5
pkgs/applications/misc/far2l/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, makeWrapper, cmake, ninja, pkg-config, m4, bash 2 2 , xdg-utils, zip, unzip, gzip, bzip2, gnutar, p7zip, xz 3 - , IOKit, Carbon, Cocoa, AudioToolbox, OpenGL 3 + , IOKit, Carbon, Cocoa, AudioToolbox, OpenGL, System 4 4 , withTTYX ? true, libX11 5 5 , withGUI ? true, wxGTK32 6 6 , withUCD ? true, libuchardet ··· 35 35 ++ lib.optionals withNetRocks [ openssl libssh libnfs neon ] 36 36 ++ lib.optional (withNetRocks && !stdenv.isDarwin) samba # broken on darwin 37 37 ++ lib.optionals withPython (with python3Packages; [ python cffi debugpy pcpp ]) 38 - ++ lib.optionals stdenv.isDarwin [ IOKit Carbon Cocoa AudioToolbox OpenGL ]; 38 + ++ lib.optionals stdenv.isDarwin [ IOKit Carbon Cocoa AudioToolbox OpenGL System ]; 39 39 40 40 postPatch = '' 41 41 patchShebangs python/src/prebuild.sh ··· 43 43 --replace '"/bin/bash"' '"${bash}/bin/bash"' 44 44 substituteInPlace far2l/src/cfg/config.cpp \ 45 45 --replace '"/bin/bash"' '"${bash}/bin/bash"' 46 - '' + lib.optionalString stdenv.isDarwin '' 47 - substituteInPlace WinPort/src/Backend/WX/CMakeLists.txt \ 48 - --replace "-framework System" -lSystem 49 46 ''; 50 47 51 48 cmakeFlags = lib.mapAttrsToList (k: v: "-D${k}=${if v then "yes" else "no"}") {
+9
pkgs/os-specific/darwin/apple-sdk/default.nix
··· 320 320 ''; 321 321 }); 322 322 323 + System = lib.overrideDerivation super.System (drv: { 324 + installPhase = '' 325 + mkdir -p $out/Library/Frameworks/System.framework/Versions/B 326 + ln -s $out/Library/Frameworks/System.framework/Versions/{B,Current} 327 + ln -s ${pkgs.darwin.Libsystem}/lib/libSystem.B.tbd $out/Library/Frameworks/System.framework/Versions/B/System.tbd 328 + ln -s $out/Library/Frameworks/System.framework/{Versions/Current/,}System.tbd 329 + ''; 330 + }); 331 + 323 332 WebKit = lib.overrideDerivation super.WebKit (drv: { 324 333 extraTBDFiles = [ 325 334 "Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore.tbd"
+1
pkgs/os-specific/darwin/apple-sdk/frameworks.nix
··· 104 104 SpriteKit = {}; 105 105 StoreKit = {}; 106 106 SyncServices = {}; 107 + System = {}; 107 108 SystemConfiguration = { inherit Security; }; 108 109 TWAIN = { inherit Carbon; }; 109 110 Tcl = {};
+1 -4
pkgs/tools/system/monit/default.nix
··· 24 24 nativeBuildInputs = [ bison flex ] ++ 25 25 lib.optionals stdenv.hostPlatform.isDarwin [ 26 26 darwin.apple_sdk.frameworks.DiskArbitration 27 + darwin.apple_sdk.frameworks.System 27 28 ]; 28 29 29 30 buildInputs = [ zlib.dev libxcrypt ] ++ 30 31 lib.optionals useSSL [ openssl ] ++ 31 32 lib.optionals usePAM [ pam ]; 32 - 33 - preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' 34 - substituteInPlace configure --replace "-framework System" "-lSystem" 35 - ''; 36 33 37 34 configureFlags = [ 38 35 (lib.withFeature usePAM "pam")
+1 -1
pkgs/top-level/all-packages.nix
··· 20362 20362 20363 20363 far2l = callPackage ../applications/misc/far2l { 20364 20364 stdenv = if stdenv.cc.isClang then llvmPackages.stdenv else stdenv; 20365 - inherit (darwin.apple_sdk.frameworks) IOKit Carbon Cocoa AudioToolbox OpenGL; 20365 + inherit (darwin.apple_sdk.frameworks) IOKit Carbon Cocoa AudioToolbox OpenGL System; 20366 20366 }; 20367 20367 20368 20368 farbfeld = callPackage ../development/libraries/farbfeld { };