Merge pull request #172226 from 06kellyjac/cargo-geiger

authored by Ben Siraphob and committed by GitHub eb935d12 888c0bd1

+16 -13
+16 -13
pkgs/development/tools/rust/cargo-geiger/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub 2 - , rustPlatform, pkg-config, openssl 3 - # darwin dependencies 4 - , Security, CoreFoundation, libiconv 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , rustPlatform 5 + , pkg-config 6 + , openssl 7 + # darwin dependencies 8 + , Security 9 + , CoreFoundation 10 + , libiconv 11 + , curl 5 12 }: 6 13 7 14 rustPlatform.buildRustPackage rec { ··· 16 23 }; 17 24 cargoSha256 = "sha256-i7xDEzZAN2ubW1Q6MhY+xsb9XiUajNDHLdtDuO5r6jA="; 18 25 19 - buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv ]; 20 - nativeBuildInputs = [ pkg-config ]; 21 - 22 - # FIXME: Use impure version of CoreFoundation because of missing symbols. 23 - # CFURLSetResourcePropertyForKey is defined in the headers but there's no 24 - # corresponding implementation in the sources from opensource.apple.com. 25 - preConfigure = lib.optionalString stdenv.isDarwin '' 26 - export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE" 27 - ''; 26 + buildInputs = [ openssl ] 27 + ++ lib.optionals stdenv.isDarwin [ CoreFoundation Security libiconv curl ]; 28 + nativeBuildInputs = [ pkg-config ] 29 + # curl-sys wants to run curl-config on darwin 30 + ++ lib.optionals stdenv.isDarwin [ curl.dev ]; 28 31 29 32 # skip tests with networking or other failures 30 33 checkFlags = [