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