about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/hadoop
diff options
context:
space:
mode:
authorConnor Baker <connorbaker01@gmail.com>2022-02-14 09:21:28 -0500
committerConnor Baker <connorbaker01@gmail.com>2022-02-14 09:21:28 -0500
commit1e5ffe1fc0f93a6a9e3b6d0cd21cde53c7c4c144 (patch)
treec111757d51b2600fd882430c174bd46451f27deb /pkgs/applications/networking/cluster/hadoop
parente752dfc6fbae10ffb71673e0b0c6ecef3aee5cf5 (diff)
hadoop: Consolidate sha256 attrs and add assert for supported platforms
Diffstat (limited to 'pkgs/applications/networking/cluster/hadoop')
-rw-r--r--pkgs/applications/networking/cluster/hadoop/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/networking/cluster/hadoop/default.nix b/pkgs/applications/networking/cluster/hadoop/default.nix
index e81c6ae308f68..1a0a6dafec469 100644
--- a/pkgs/applications/networking/cluster/hadoop/default.nix
+++ b/pkgs/applications/networking/cluster/hadoop/default.nix
@@ -19,6 +19,8 @@
 
 with lib;
 
+assert elem stdenv.system [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
+
 let
   common = { pname, version, untarDir ? "${pname}-${version}", sha256, jdk, openssl, nativeLibs ? [ ], libPatches ? "" }:
     let
@@ -81,9 +83,11 @@ in
         pname = "hadoop";
         version = "3.3.1";
         untarDir = "${pname}-${version}";
-        sha256 = {
+        sha256 = rec {
           x86_64-linux = "1b3v16ihysqaxw8za1r5jlnphy8dwhivdx2d0z64309w57ihlxxd";
+          x86_64-darwin = x86_64-linux;
           aarch64-linux = "00ln18vpi07jq2slk3kplyhcj8ad41n0yl880q5cihilk7daclxz";
+          aarch64-darwin = aarch64-linux;
         };
         inherit openssl;
         nativeLibs = [ stdenv.cc.cc.lib protobuf3_7 zlib snappy ];
@@ -97,10 +101,6 @@ in
         '';
         jdk = jdk11_headless;
       } // optionalAttrs stdenv.isDarwin {
-        sha256 = {
-          x86_64-darwin = "1b3v16ihysqaxw8za1r5jlnphy8dwhivdx2d0z64309w57ihlxxd";
-          aarch64-darwin = "00ln18vpi07jq2slk3kplyhcj8ad41n0yl880q5cihilk7daclxz";
-        };
         openssl = null;
         nativeLibs = [ ];
         libPatches = "";