diff --git a/pkgs/development/libraries/physics/applgrid/default.nix b/pkgs/development/libraries/physics/applgrid/default.nix index 3ed2f24f45f9..512398dde9a1 100644 --- a/pkgs/development/libraries/physics/applgrid/default.nix +++ b/pkgs/development/libraries/physics/applgrid/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, gfortran, hoppet, lhapdf, root5, zlib }: +{ lib, stdenv, fetchurl, gfortran, hoppet, lhapdf, root5, zlib, Cocoa }: stdenv.mkDerivation rec { pname = "applgrid"; @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ gfortran ]; # For some reason zlib was only needed after bump to gfortran8 - buildInputs = [ hoppet lhapdf root5 zlib ]; + buildInputs = [ hoppet lhapdf root5 zlib ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; patches = [ ./bad_code.patch diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac51b9fcc46b..b4335a67d37c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35869,7 +35869,9 @@ with pkgs; apfel = callPackage ../development/libraries/physics/apfel { }; - applgrid = callPackage ../development/libraries/physics/applgrid { }; + applgrid = callPackage ../development/libraries/physics/applgrid { + inherit (darwin.apple_sdk.frameworks) Cocoa; + }; hoppet = callPackage ../development/libraries/physics/hoppet { };