3
0
Fork 0
forked from mirrors/nixpkgs

dive: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:32:00 -05:00
parent 38be8fbe7f
commit a3a9f0387d
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub, pkg-config, btrfs-progs, gpgme, lvm2 }: { stdenv, buildGoModule, fetchFromGitHub, pkg-config, btrfs-progs, gpgme, lvm2, Security }:
buildGoModule rec { buildGoModule rec {
pname = "dive"; pname = "dive";
@ -15,7 +15,8 @@ buildGoModule rec {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ]; buildInputs = stdenv.lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ]
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ]; buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];

View file

@ -10161,7 +10161,9 @@ in
binutils = binutils; binutils = binutils;
}; };
dive = callPackage ../development/tools/dive { }; dive = callPackage ../development/tools/dive {
inherit (darwin.apple_sdk.frameworks) Security;
};
doclifter = callPackage ../development/tools/misc/doclifter { }; doclifter = callPackage ../development/tools/misc/doclifter { };