gobetween: update vendored lxd
This allows us to drop the overrideModAttrs workaround, vendoring has been fixed in the newer lxd version.
This commit is contained in:
parent
4ca432d2e2
commit
59fd4775b6
@ -13,25 +13,15 @@ buildGoModule rec {
|
|||||||
|
|
||||||
deleteVendor = true;
|
deleteVendor = true;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./gomod.patch
|
||||||
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make -e build${lib.optionalString enableStatic "-static"}
|
make -e build${lib.optionalString enableStatic "-static"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
lxd = fetchFromGitHub {
|
vendorSha256 = "1nkni9ikpc0wngh5v0qmlpn5s9v85lb2ih22f3h3lih7nc29yv87";
|
||||||
owner = "lxc";
|
|
||||||
repo = "lxd";
|
|
||||||
rev = "814c96fcec7478c9cac9582fead011b2dee0af5b";
|
|
||||||
sha256 = "03k2mwkfzgqmgzgxw46mymgkidbjlfv70pzw8hlyi18ag8jj4g5j";
|
|
||||||
};
|
|
||||||
|
|
||||||
overrideModAttrs = (_: {
|
|
||||||
postBuild = ''
|
|
||||||
rm -r vendor/github.com/lxc/lxd
|
|
||||||
cp -r --reflink=auto ${lxd} vendor/github.com/lxc/lxd
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
|
|
||||||
vendorSha256 = "1nnz75mv27iwl5z7wa986gs8mhyn10452vini5x90yfx523bg589";
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
13
pkgs/servers/gobetween/gomod.patch
Normal file
13
pkgs/servers/gobetween/gomod.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/go.mod b/src/go.mod
|
||||||
|
index 3242342..795c306 100644
|
||||||
|
--- a/src/go.mod
|
||||||
|
+++ b/src/go.mod
|
||||||
|
@@ -28,7 +28,7 @@ require (
|
||||||
|
github.com/juju/go4 v0.0.0-20160222163258-40d72ab9641a // indirect
|
||||||
|
github.com/juju/persistent-cookiejar v0.0.0-20171026135701-d5e5a8405ef9 // indirect
|
||||||
|
github.com/juju/webbrowser v1.0.0 // indirect
|
||||||
|
- github.com/lxc/lxd v0.0.0-20200706202337-814c96fcec74
|
||||||
|
+ github.com/lxc/lxd v0.0.0-20200727014606-0d408e8e8ebb
|
||||||
|
github.com/mattn/go-colorable v0.1.7 // indirect
|
||||||
|
github.com/miekg/dns v1.1.30
|
||||||
|
github.com/mitchellh/go-testing-interface v1.14.0 // indirect
|
Loading…
Reference in New Issue
Block a user