diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-09-27 08:34:59 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-10-05 17:35:20 +1000 |
commit | 5837509c6591ad9bbb321a87deff1d4d92f5d11e (patch) | |
tree | 35a3fdd383d664f314867fef298d3d2a95ccdfd0 /pkgs/servers/monitoring | |
parent | e2ba711bfa83e298207064ac6e80f465f545f96a (diff) |
grafana: remove scripts/go to fix go 1.15 build failure
Using subPackages to avoid building this directory would be more idiomatic but then we would lose the majority of the go tests.
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r-- | pkgs/servers/monitoring/grafana/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/grafana/default.nix b/pkgs/servers/monitoring/grafana/default.nix index 975c092251012..ed9c579d9c385 100644 --- a/pkgs/servers/monitoring/grafana/default.nix +++ b/pkgs/servers/monitoring/grafana/default.nix @@ -25,6 +25,12 @@ buildGoModule rec { --replace 'var version = "5.0.0"' 'var version = "${version}"' ''; + # fixes build failure with go 1.15: + # main module (github.com/grafana/grafana) does not contain package github.com/grafana/grafana/scripts/go + preBuild = '' + rm -rf scripts/go + ''; + postInstall = '' tar -xvf $srcStatic mkdir -p $out/share/grafana |