3
0
Fork 0
forked from mirrors/nixpkgs

nix-index: fix darwin build

(cherry picked from commit 5c14decaa3)
This commit is contained in:
Daiderd Jordan 2018-10-12 19:04:19 +02:00 committed by Linus Heckemann
parent 540c63691c
commit fadacd10ab
2 changed files with 10 additions and 7 deletions

View file

@ -1,8 +1,8 @@
{ lib, rustPlatform, fetchFromGitHub, pkgconfig, openssl, curl }:
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, curl
, Security
}:
with rustPlatform;
buildRustPackage rec {
rustPlatform.buildRustPackage rec {
name = "nix-index-${version}";
version = "0.1.2";
@ -14,7 +14,8 @@ buildRustPackage rec {
};
cargoSha256 = "045qm7cyg3sdvf22i8b9cz8gsvggs5bn9xz8k1pvn5gxb7zj24cx";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl curl];
buildInputs = [ openssl curl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
postInstall = ''
mkdir -p $out/etc/profile.d
@ -23,7 +24,7 @@ buildRustPackage rec {
--replace "@out@" "$out"
'';
meta = with lib; {
meta = with stdenv.lib; {
description = "A files database for nixpkgs";
homepage = https://github.com/bennofs/nix-index;
license = with licenses; [ bsd3 ];

View file

@ -21691,7 +21691,9 @@ with pkgs;
nix-info = callPackage ../tools/nix/info { };
nix-info-tested = nix-info.override { doCheck = true; };
nix-index = callPackage ../tools/package-management/nix-index { };
nix-index = callPackage ../tools/package-management/nix-index {
inherit (darwin.apple_sdk.frameworks) Security;
};
nix-pin = callPackage ../tools/package-management/nix-pin { };