diff options
author | Yt <raphael@megzari.com> | 2022-05-14 02:28:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-14 02:28:59 -0400 |
commit | 05dd614c533851adaa69ea8481202ef4f595ed16 (patch) | |
tree | c38bc38f6f0d76d13ffad794183a6aa83506e74b /pkgs/servers/redpanda | |
parent | 820177eded91f3908cfc72dfee00e831ea3d0060 (diff) |
redpanda: fix linux build (#172964)
* redpanda: fix linux build * redpanda: linux arm hash update Co-authored-by: Bobby Rong <rjl931189261@126.com> * redpanda: darwin arm hash update Co-authored-by: Bobby Rong <rjl931189261@126.com> Co-authored-by: Bobby Rong <rjl931189261@126.com>
Diffstat (limited to 'pkgs/servers/redpanda')
-rw-r--r-- | pkgs/servers/redpanda/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/servers/redpanda/default.nix b/pkgs/servers/redpanda/default.nix index 6b0704b04a598..c2060560c594b 100644 --- a/pkgs/servers/redpanda/default.nix +++ b/pkgs/servers/redpanda/default.nix @@ -4,13 +4,19 @@ let version = "21.11.15"; platform = if stdenv.isLinux then "linux" else "darwin"; arch = if stdenv.isAarch64 then "arm" else "amd"; + sha256s = { + darwin.amd = "sha256-Yf4O7lVcf+nmb0wFTx7jLjUSmdAItoUfPlkhHveI9UY="; + darwin.arm = "sha256-vKfFBheDZtvcbg0zbj3rqUEQczZvySuGuM3RopnDJG8="; + linux.amd = "sha256:0vpxn7kcpqylk0nc74m6yxgwwf8ns8pyb6kxnmnmv2x58f8x4c8n"; + linux.arm = "sha256-1AQSB2V5zGivU0UinTST2kOydQf/bmLbpjdW0Yo4ptE="; + }; in stdenv.mkDerivation rec { pname = "redpanda"; inherit version; src = fetchzip { url = "https://github.com/redpanda-data/redpanda/releases/download/v${version}/rpk-${platform}-${arch}64.zip"; - sha256 = "sha256-Yf4O7lVcf+nmb0wFTx7jLjUSmdAItoUfPlkhHveI9UY="; + sha256 = sha256s.${platform}.${arch}; }; installPhase = '' |