@@ -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 ];