atomicparsley: include cf-private on darwin

Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_NSDictionary", referenced from:
          objc-class-ref in nsfile.o
          objc-class-ref in nsimage.o
    ld: symbol(s) not found for architecture x86_64
This commit is contained in:
Daiderd Jordan 2018-11-05 19:12:46 +01:00
parent 8abc1cccfb
commit c8e480b4da
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 13 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchhg, autoreconfHook, zlib, darwin }:
{ stdenv, fetchhg, autoreconfHook, zlib, cf-private, Cocoa }:
stdenv.mkDerivation rec {
name = "atomicparsley-${version}";
@ -9,10 +9,14 @@ stdenv.mkDerivation rec {
sha256 = "05n4kbn91ps52h3wi1qb2jwygjsc01qzx4lgkv5mvwl5i49rj8fm";
};
buildInputs =
[ autoreconfHook
zlib
] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib ]
++ stdenv.lib.optionals stdenv.isDarwin [
Cocoa
# Needed for OBJC_CLASS_$_NSDictionary symbols.
cf-private
];
installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";

View File

@ -571,7 +571,10 @@ with pkgs;
gsl = gsl_1;
};
atomicparsley = callPackage ../tools/video/atomicparsley { };
atomicparsley = callPackage ../tools/video/atomicparsley {
inherit (darwin) cf-private;
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
autoflake = callPackage ../development/tools/analysis/autoflake { };