Merge pull request #180605 from bdd/starlark-aarch64

starlark: Patch tests to unbreak on aarch64

authored by Rick van Schijndel and committed by GitHub a42a9a3c f65b415f

+10 -2
+10 -2
pkgs/development/interpreters/starlark/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, buildGoModule }: 2 buildGoModule rec { 3 pname = "starlark"; 4 version = "unstable-2022-03-02"; ··· 12 13 vendorSha256 = "sha256-lgL5o3MQfZekZ++BNESwV0LeoTxwEZfziQAe99zm4RY="; 14 15 ldflags = [ "-s" "-w" ]; 16 17 meta = with lib; { 18 - broken = (stdenv.isLinux && stdenv.isAarch64); 19 homepage = "https://github.com/google/starlark-go"; 20 description = "An interpreter for Starlark, implemented in Go"; 21 license = licenses.bsd3;
··· 1 + { stdenv, lib, fetchFromGitHub, buildGoModule, fetchpatch }: 2 buildGoModule rec { 3 pname = "starlark"; 4 version = "unstable-2022-03-02"; ··· 12 13 vendorSha256 = "sha256-lgL5o3MQfZekZ++BNESwV0LeoTxwEZfziQAe99zm4RY="; 14 15 + patches = [ 16 + # Fix floating point imprecision issue in the test suite. 17 + # https://github.com/google/starlark-go/pull/409 18 + (fetchpatch { 19 + url = "https://github.com/google/starlark-go/commit/be6ed3bfcc376e5bf6fe2257ae89ddfb00d14e2c.patch"; 20 + sha256 = "sha256-A0tHPso6SfFn73kICcA9/5n3JHd7hMdQMGty+4L6T4k="; 21 + }) 22 + ]; 23 + 24 ldflags = [ "-s" "-w" ]; 25 26 meta = with lib; { 27 homepage = "https://github.com/google/starlark-go"; 28 description = "An interpreter for Starlark, implemented in Go"; 29 license = licenses.bsd3;