git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #48276 from LnL7/darwin-nix-index

nix-index: fix darwin build

commite2d857a33240fc21635b376e5bddda3bd58b2396 authorSilvan Mosberger <infinisil@icloud.com> dateFri 12 Oct 2018, 19:40 (8 years ago) parent5eb7ca45c14dec
2 files changed+10−7
pkgs/tools/package-management/nix-index/default.nix+7−6 pkgs/top-level/all-packages.nix+3−1
pkgs/tools/package-management/nix-index/default.nix+7−6
@@ -1,8 +1,8 @@
1−{ lib, rustPlatform, fetchFromGitHub, pkgconfig, openssl, curl }:
1+{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, curl
2+, Security
3+}:
24
3−with rustPlatform;
4−
5−buildRustPackage rec {
5+rustPlatform.buildRustPackage rec {
66 name = "nix-index-${version}";
77 version = "0.1.2";
88
@@ -14,7 +14,8 @@ buildRustPackage rec {
1414 };
1515 cargoSha256 = "045qm7cyg3sdvf22i8b9cz8gsvggs5bn9xz8k1pvn5gxb7zj24cx";
1616 nativeBuildInputs = [ pkgconfig ];
17− buildInputs = [ openssl curl];
17+ buildInputs = [ openssl curl ]
18+ ++ stdenv.lib.optional stdenv.isDarwin Security;
1819
1920 postInstall = ''
2021 mkdir -p $out/etc/profile.d
@@ -23,7 +24,7 @@ buildRustPackage rec {
2324 --replace "@out@" "$out"
2425 '';
2526
26− meta = with lib; {
27+ meta = with stdenv.lib; {
2728 description = "A files database for nixpkgs";
2829 homepage = https://github.com/bennofs/nix-index;
2930 license = with licenses; [ bsd3 ];
pkgs/top-level/all-packages.nix+3−1
@@ -21969,7 +21969,9 @@ with pkgs;
2196921969 nix-info = callPackage ../tools/nix/info { };
2197021970 nix-info-tested = nix-info.override { doCheck = true; };
2197121971
21972− nix-index = callPackage ../tools/package-management/nix-index { };
21972+ nix-index = callPackage ../tools/package-management/nix-index {
21973+ inherit (darwin.apple_sdk.frameworks) Security;
21974+ };
2197321975
2197421976 nix-pin = callPackage ../tools/package-management/nix-pin { };
2197521977