uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
39
pkgs/servers/gobetween/default.nix
Normal file
39
pkgs/servers/gobetween/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ stdenv, buildGoModule, fetchFromGitHub, lib
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gobetween";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yyyar";
|
||||
repo = "gobetween";
|
||||
rev = version;
|
||||
sha256 = "0bxf89l53sqan9qq23rwawjkcanv9p61sw56zjqhyx78f0bh0zbc";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./gomod.patch
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
make -e build${lib.optionalString enableStatic "-static"}
|
||||
'';
|
||||
|
||||
vendorSha256 = "1nkni9ikpc0wngh5v0qmlpn5s9v85lb2ih22f3h3lih7nc29yv87";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/gobetween $out/bin
|
||||
cp -r share $out/share
|
||||
cp -r config $out/share
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Modern & minimalistic load balancer for the Сloud era";
|
||||
homepage = "https://gobetween.io";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ tomberek ];
|
||||
};
|
||||
}
|
||||
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…
Add table
Add a link
Reference in a new issue