nix-index: fix darwin build

This commit is contained in:
Daiderd Jordan 2018-10-12 19:04:19 +02:00
parent c429b2b389
commit 5c14decaa3
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
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; rustPlatform.buildRustPackage rec {
buildRustPackage rec {
name = "nix-index-${version}"; name = "nix-index-${version}";
version = "0.1.2"; version = "0.1.2";
@ -14,7 +14,8 @@ buildRustPackage rec {
}; };
cargoSha256 = "045qm7cyg3sdvf22i8b9cz8gsvggs5bn9xz8k1pvn5gxb7zj24cx"; cargoSha256 = "045qm7cyg3sdvf22i8b9cz8gsvggs5bn9xz8k1pvn5gxb7zj24cx";
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl curl]; buildInputs = [ openssl curl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
postInstall = '' postInstall = ''
mkdir -p $out/etc/profile.d mkdir -p $out/etc/profile.d
@ -23,7 +24,7 @@ buildRustPackage rec {
--replace "@out@" "$out" --replace "@out@" "$out"
''; '';
meta = with lib; { meta = with stdenv.lib; {
description = "A files database for nixpkgs"; description = "A files database for nixpkgs";
homepage = https://github.com/bennofs/nix-index; homepage = https://github.com/bennofs/nix-index;
license = with licenses; [ bsd3 ]; license = with licenses; [ bsd3 ];

View File

@ -21971,7 +21971,9 @@ with pkgs;
nix-info = callPackage ../tools/nix/info { }; nix-info = callPackage ../tools/nix/info { };
nix-info-tested = nix-info.override { doCheck = true; }; 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 { }; nix-pin = callPackage ../tools/package-management/nix-pin { };