go-qt: manually remove references

Fixes an issue where part of the tests fail due to over-quoting of
`GOFLAGS` and treating `-trimpath` as part of `-mod`.
This commit is contained in:
xeals 2020-12-10 10:40:22 +11:00
parent 8548791f31
commit 8b2f440b36
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

View File

@ -3,8 +3,10 @@
, buildGoModule
, makeWrapper
, go
, pkg-config
, qmake
, removeReferencesTo
}:
buildGoModule rec {
@ -18,6 +20,12 @@ buildGoModule rec {
sha256 = "197wdh2v0g5g2dpb1gcd5gp0g4wqzip34cawisvy6z7mygmsc8rd";
};
# fails with `GOFLAGS=-vendor=mod -trimpath`
allowGoReference = true;
preFixup = ''
find $out -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${go} '{}' +
'';
vendorSha256 = "00wghn93xz240ddj47b8mkbx3cg7c0486igp6vv0x9r6ylhywsm6";
subPackages = [ "cmd/..." ];
@ -55,6 +63,5 @@ buildGoModule rec {
homepage = "https://github.com/therecipe/qt";
description = "Qt bindings for Go";
license = licenses.lgpl3;
broken = true; # -mod=vendor -trimpath not supported (can be '', 'mod', 'readonly', or 'vendor'); not sure what's changed in nixpkgs
};
}