diff options
author | Berk D. Demir <bdd@mindcast.org> | 2022-07-07 22:53:39 +0000 |
---|---|---|
committer | Berk D. Demir <bdd@mindcast.org> | 2022-07-08 06:47:36 +0000 |
commit | 699a374e8a24edbd3296240f6da5d454e7fb3c21 (patch) | |
tree | 0a53aaaba9c14777906910704b40b1e58bca2775 /pkgs/development/interpreters/starlark | |
parent | e1123916d6caf509f9829f851b09a9da2ef2104d (diff) |
starlark: Patch tests to unbreak on aarch64
Pull in the patch from the submitted pull request to upstream to fix the unit test data that doesn't tolerate floating point approximation. - Unbreaks aarch64-linux - Fixes the build for aarch64-darwin
Diffstat (limited to 'pkgs/development/interpreters/starlark')
-rw-r--r-- | pkgs/development/interpreters/starlark/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/starlark/default.nix b/pkgs/development/interpreters/starlark/default.nix index 10059b34dc2ec..c61e511102d70 100644 --- a/pkgs/development/interpreters/starlark/default.nix +++ b/pkgs/development/interpreters/starlark/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, buildGoModule }: +{ stdenv, lib, fetchFromGitHub, buildGoModule, fetchpatch }: buildGoModule rec { pname = "starlark"; version = "unstable-2022-03-02"; @@ -12,10 +12,18 @@ buildGoModule rec { vendorSha256 = "sha256-lgL5o3MQfZekZ++BNESwV0LeoTxwEZfziQAe99zm4RY="; + patches = [ + # Fix floating point imprecision issue in the test suite. + # https://github.com/google/starlark-go/pull/409 + (fetchpatch { + url = "https://github.com/google/starlark-go/commit/be6ed3bfcc376e5bf6fe2257ae89ddfb00d14e2c.patch"; + sha256 = "sha256-A0tHPso6SfFn73kICcA9/5n3JHd7hMdQMGty+4L6T4k="; + }) + ]; + ldflags = [ "-s" "-w" ]; meta = with lib; { - broken = (stdenv.isLinux && stdenv.isAarch64); homepage = "https://github.com/google/starlark-go"; description = "An interpreter for Starlark, implemented in Go"; license = licenses.bsd3; |