From 4f97b2791fe0564e1e92aa80cb03c3be106366d6 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Thu, 2 Jun 2022 13:59:39 +0200 Subject: sourcehut: improve cross-compiling support --- .../applications/version-management/sourcehut/fix-gqlgen-trimpath.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/version-management/sourcehut/fix-gqlgen-trimpath.nix b/pkgs/applications/version-management/sourcehut/fix-gqlgen-trimpath.nix index 1a45c8112ba8d..a95c3a3f3fd2c 100644 --- a/pkgs/applications/version-management/sourcehut/fix-gqlgen-trimpath.nix +++ b/pkgs/applications/version-management/sourcehut/fix-gqlgen-trimpath.nix @@ -15,12 +15,14 @@ # graph/generate.go:10: running "go": exit status 1 proxyVendor = true; + nativeBuildInputs = [ unzip ]; + # Workaround -trimpath in the package derivation: # https://github.com/99designs/gqlgen/issues/1537 # This is to give `go generate ./graph` access to gqlgen's *.gotpl files # If it fails, the gqlgenVersion may have to be updated. 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 ./graph rm -rf github.com -- cgit 1.4.1