1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

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 {
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}" ];

View file

@ -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 { };