forked from mirrors/nixpkgs
packr: fix build on darwin
This commit is contained in:
parent
4a5a07a487
commit
028d53e996
|
@ -1,6 +1,7 @@
|
|||
{ buildGoModule
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, stdenv
|
||||
, Security
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
|
@ -16,9 +17,11 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "packr" "v2/packr2" ];
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
modSha256 = "0afhkvivma16bi8rz3kwcsz9mhmcn4zm6rrymxkvazx6b844hcdv";
|
||||
|
||||
meta = with lib; {
|
||||
meta = with stdenv.lib; {
|
||||
description = "The simple and easy way to embed static files into Go binaries";
|
||||
homepage = "https://github.com/gobuffalo/packr";
|
||||
license = licenses.mit;
|
||||
|
|
|
@ -292,6 +292,7 @@ in
|
|||
# Version 2.6.0 fails to build with go 1.13 due to nested modules:
|
||||
# go: directory v2/packr2 is outside main module
|
||||
buildGoModule = buildGo112Module;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
pet = callPackage ../development/tools/pet { };
|
||||
|
|
Loading…
Reference in a new issue