git.iko.soy/typeable/nixpkgs
on master help sign in
nix-index: fix darwin build
commit5c14decaa36ae559541cfb34d1477b8b1e76c81a authorDaiderd Jordan <daiderd@gmail.com> dateFri 12 Oct 2018, 19:04 (8 years ago) parentc429b2b
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
@@ -21971,7 +21971,9 @@ with pkgs;
2197121971 nix-info = callPackage ../tools/nix/info { };
2197221972 nix-info-tested = nix-info.override { doCheck = true; };
2197321973
21974− nix-index = callPackage ../tools/package-management/nix-index { };
21974+ nix-index = callPackage ../tools/package-management/nix-index {
21975+ inherit (darwin.apple_sdk.frameworks) Security;
21976+ };
2197521977
2197621978 nix-pin = callPackage ../tools/package-management/nix-pin { };
2197721979