rink: fix darwin build (#123501)

This commit is contained in:
Stéphan Kochen 2021-05-18 16:34:25 +02:00 committed by GitHub
parent 4bb1c4677d
commit 7e9451ffb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses
, libiconv, Security }:
rustPlatform.buildRustPackage rec {
version = "0.6.1";
@ -14,7 +15,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0x4rvfnw3gl2aj6i006nkk3y1f8skyv8g0ss3z2v6qj9nhs7pyir";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ncurses ];
buildInputs = [ ncurses ]
++ (if stdenv.isDarwin then [ libiconv Security ] else [ openssl ]);
# Some tests fail and/or attempt to use internet servers.
doCheck = false;

View file

@ -29830,7 +29830,9 @@ in
stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else gcc8Stdenv;
});
rink = callPackage ../applications/science/misc/rink { };
rink = callPackage ../applications/science/misc/rink {
inherit (darwin.apple_sdk.frameworks) Security;
};
simgrid = callPackage ../applications/science/misc/simgrid { };