diff options
author | ento <21108+ento@users.noreply.github.com> | 2022-11-12 12:32:28 +0200 |
---|---|---|
committer | Evangelos Paterakis <evan@geopjr.dev> | 2022-11-12 12:32:28 +0200 |
commit | b8ae9f94aa85b154963779cc5e75f1937525a8bd (patch) | |
tree | 01d760324985f80e2df377c2bdfb53a371aa5bb2 /pkgs/development/compilers/crystal | |
parent | 4bd897e55011adf9662a76f10ba2e15cc1e68ecf (diff) |
fix: supported platforms per version
Diffstat (limited to 'pkgs/development/compilers/crystal')
-rw-r--r-- | pkgs/development/compilers/crystal/default.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/compilers/crystal/default.nix b/pkgs/development/compilers/crystal/default.nix index db0ac01891d9..9423e9c7e4fc 100644 --- a/pkgs/development/compilers/crystal/default.nix +++ b/pkgs/development/compilers/crystal/default.nix @@ -67,7 +67,7 @@ let patchShebangs $out/bin/crystal ''; - meta.broken = (lib.versionOlder version "1.2.0" && isAarch64Darwin) || (lib.versionAtLeast version "1.3.0" && stdenv.system == "i686-linux") || (lib.versionAtLeast version "1.5.0" && stdenv.system == "aarch64-linux"); + meta.platforms = lib.attrNames sha256s; }; commonBuildInputs = extraBuildInputs: [ @@ -243,13 +243,11 @@ let }; meta = with lib; { - broken = stdenv.isDarwin; + inherit (binary.meta) platforms; description = "A compiled language with Ruby like syntax and type inference"; homepage = "https://crystal-lang.org/"; license = licenses.asl20; maintainers = with maintainers; [ david50407 manveru peterhoeg ]; - platforms = let archNames = builtins.attrNames archs; in - if (lib.versionOlder version "1.2.0") then remove "aarch64-darwin" archNames else archNames; }; }) ); |