darwin.trash: add cf-private

Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_NSMutableArray", referenced from:
          objc-class-ref in trash-571f39.o
      "_OBJC_CLASS_$_NSURL", referenced from:
          objc-class-ref in trash-571f39.o
      "_OBJC_CLASS_$_NSUserDefaults", referenced from:
          objc-class-ref in trash-571f39.o
          objc-class-ref in HGCLIUtils-31f3b3.o
    ld: symbol(s) not found for architecture x86_64
This commit is contained in:
Daiderd Jordan 2018-11-07 19:15:43 +01:00
parent 16a54d6b2b
commit ee1c6f62f8
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, frameworks, perl } :
{ stdenv, fetchFromGitHub, perl, cf-private, AppKit, Cocoa, ScriptingBridge }:
stdenv.mkDerivation rec {
version = "0.9.1";
name = "trash-${version}";
@ -10,11 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "0ylkf7jxfy1pj7i1s48w28kzqjdfd57m2pw0jycsgcj5bkzwll41";
};
buildInputs = with frameworks; [
Cocoa
AppKit
ScriptingBridge
buildInputs = [
perl
Cocoa AppKit ScriptingBridge
# Neded for OBJC_CLASS_$_NSMutableArray symbols.
cf-private
];
patches = [ ./trash.diff ];

View File

@ -66,7 +66,7 @@ in
stubs = callPackages ../os-specific/darwin/stubs { };
trash = callPackage ../os-specific/darwin/trash { inherit (darwin.apple_sdk) frameworks; };
trash = darwin.callPackage ../os-specific/darwin/trash { };
usr-include = callPackage ../os-specific/darwin/usr-include { };