From b7a3d4bb11ad8cf8ca6e8a023704fd0370612098 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Mon, 7 Nov 2022 18:39:50 -0800 Subject: [PATCH] verible: fix build for aarch64-linux --- pkgs/development/tools/verible/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/verible/default.nix b/pkgs/development/tools/verible/default.nix index dc2d015a46f4..684e2e009ac1 100644 --- a/pkgs/development/tools/verible/default.nix +++ b/pkgs/development/tools/verible/default.nix @@ -8,6 +8,9 @@ , python3 }: +let + system = stdenv.hostPlatform.system; +in buildBazelPackage rec { pname = "verible"; version = "0.0-2172-g238b6df6"; @@ -39,7 +42,10 @@ buildBazelPackage rec { fetchAttrs = { # Fixed output derivation hash after bazel fetch - sha256 = "sha256-45PINJ7VtL5Jl/nAQNkiSCt8wUwtytNfgeNMZaz3Y9U="; + sha256 = { + aarch64-linux = "sha256-BnZ/jZ+KF/sNrVSYu1UGxyBe66fWVaIrwiqRQuYGVrY="; + x86_64-linux = "sha256-45PINJ7VtL5Jl/nAQNkiSCt8wUwtytNfgeNMZaz3Y9U="; + }.${system} or (throw "No hash for system: ${system}"); }; nativeBuildInputs = [