dive: fix build on darwin
This commit is contained in:
parent
38be8fbe7f
commit
a3a9f0387d
2 changed files with 6 additions and 3 deletions
|
@ -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 {
|
||||
pname = "dive";
|
||||
|
@ -15,7 +15,8 @@ buildGoModule rec {
|
|||
|
||||
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}" ];
|
||||
|
||||
|
|
|
@ -10161,7 +10161,9 @@ in
|
|||
binutils = binutils;
|
||||
};
|
||||
|
||||
dive = callPackage ../development/tools/dive { };
|
||||
dive = callPackage ../development/tools/dive {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
doclifter = callPackage ../development/tools/misc/doclifter { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue