sourcehut: improve cross-compiling support
This commit is contained in:
@@ -15,12 +15,14 @@
|
|||||||
# graph/generate.go:10: running "go": exit status 1
|
# graph/generate.go:10: running "go": exit status 1
|
||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ unzip ];
|
||||||
|
|
||||||
# Workaround -trimpath in the package derivation:
|
# Workaround -trimpath in the package derivation:
|
||||||
# https://github.com/99designs/gqlgen/issues/1537
|
# https://github.com/99designs/gqlgen/issues/1537
|
||||||
# This is to give `go generate ./graph` access to gqlgen's *.gotpl files
|
# This is to give `go generate ./graph` access to gqlgen's *.gotpl files
|
||||||
# If it fails, the gqlgenVersion may have to be updated.
|
# If it fails, the gqlgenVersion may have to be updated.
|
||||||
preBuild = let gqlgenVersion = "0.17.2"; in ''
|
preBuild = let gqlgenVersion = "0.17.2"; in ''
|
||||||
${unzip}/bin/unzip ''${GOPROXY#"file://"}/github.com/99designs/gqlgen/@v/v${gqlgenVersion}.zip
|
unzip ''${GOPROXY#"file://"}/github.com/99designs/gqlgen/@v/v${gqlgenVersion}.zip
|
||||||
go generate ./loaders
|
go generate ./loaders
|
||||||
go generate ./graph
|
go generate ./graph
|
||||||
rm -rf github.com
|
rm -rf github.com
|
||||||
|
|||||||
Reference in New Issue
Block a user