mirrorbits: Fix build with go 1.12
This commit is contained in:
parent
0fda5eff8e
commit
b0326145da
@ -24,6 +24,11 @@ buildGoPackage rec {
|
|||||||
rm -rf testing
|
rm -rf testing
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Fix build with go >=1.12
|
||||||
|
preBuild = ''
|
||||||
|
sed -i s/"_Ctype_struct_GeoIPRecordTag"/"C.struct_GeoIPRecordTag"/ ./go/src/github.com/etix/geoip/geoip.go
|
||||||
|
'';
|
||||||
|
|
||||||
goPackagePath = "github.com/etix/mirrorbits";
|
goPackagePath = "github.com/etix/mirrorbits";
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
|
@ -4798,11 +4798,7 @@ in
|
|||||||
|
|
||||||
miredo = callPackage ../tools/networking/miredo { };
|
miredo = callPackage ../tools/networking/miredo { };
|
||||||
|
|
||||||
mirrorbits = callPackage ../servers/mirrorbits {
|
mirrorbits = callPackage ../servers/mirrorbits { };
|
||||||
# XXX: this is failing with Go 1.12. Error is related to cgo, an
|
|
||||||
# update to this package might fix it.
|
|
||||||
buildGoPackage = buildGo111Package;
|
|
||||||
};
|
|
||||||
|
|
||||||
mitmproxy = callPackage ../tools/networking/mitmproxy { };
|
mitmproxy = callPackage ../tools/networking/mitmproxy { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user