forked from mirrors/nixpkgs
dive: fix build on darwin
This commit is contained in:
parent
38be8fbe7f
commit
a3a9f0387d
|
@ -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}" ];
|
||||||
|
|
||||||
|
|
|
@ -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 { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue