From 5429e06f58b9a445088b1b89c84de1c6fb2d774a Mon Sep 17 00:00:00 2001 From: Jude Taylor Date: Tue, 30 Jun 2015 16:11:04 -0700 Subject: [PATCH] move impure deps to a separate file --- pkgs/os-specific/darwin/apple-sdk/default.nix | 2 +- .../darwin/apple-sdk/impure-deps.nix | 48 +++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 pkgs/os-specific/darwin/apple-sdk/impure-deps.nix diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix index 520158b30ad..cc1032fc03d 100644 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk/default.nix @@ -92,7 +92,7 @@ let propagatedBuildInputs = deps; # Not going to bother being more precise than this... - __propagatedImpureHostDeps = [ "/System/Library/Frameworks/${name}.framework/Versions" ]; + __propagatedImpureHostDeps = (import ./impure-deps.nix).${name}; meta = with stdenv.lib; { description = "Apple SDK framework ${name}"; diff --git a/pkgs/os-specific/darwin/apple-sdk/impure-deps.nix b/pkgs/os-specific/darwin/apple-sdk/impure-deps.nix new file mode 100644 index 00000000000..77ac47bed4f --- /dev/null +++ b/pkgs/os-specific/darwin/apple-sdk/impure-deps.nix @@ -0,0 +1,48 @@ +{ + CoreFoundation = [ + "/System/Library/Frameworks/CoreFoundation.framework" + ]; + CFNetwork = [ + "/System/Library/Frameworks/CFNetwork.framework" + ]; + IOKit = [ + "/System/Library/Frameworks/IOKit.framework" + ]; + DiskArbitration = [ + "/System/Library/Frameworks/DiskArbitration.framework" + ]; + Security = [ + "/System/Library/Frameworks/Security.framework" + ]; + CoreServices = [ + "/System/Library/Frameworks/CoreServices.framework" + ]; + IOSurface = [ + "/System/Library/Frameworks/IOSurface.framework" + ]; + CoreGraphics = [ + "/System/Library/Frameworks/CoreGraphics.framework" + ]; + CoreText = [ + "/System/Library/Frameworks/CoreText.framework" + ]; + ImageIO = [ + "/System/Library/Frameworks/ImageIO.framework" + ]; + ApplicationServices = [ + "/System/Library/Frameworks/ApplicationServices.framework" + ]; + OpenGL = []; + CoreVideo = []; + QuartzCore = []; + PCSC = [ + "/System/Library/Frameworks/PCSC.framework" + ]; + AppKit = [ + "/System/Library/Frameworks/AppKit.framework" + ]; + Foundation = [ + "/System/Library/Frameworks/Foundation.framework" + "/usr/lib/libextension.dylib" + ]; +}