summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/crystal
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-06-20 18:56:30 +0300
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-06-20 18:56:30 +0300
commitea942af73265a585e075cb89df1d19864c9ab103 (patch)
treed04c5fd1994f035982a261062061db4ffc9f3340 /pkgs/development/compilers/crystal
parent7e55510ba2f90f121fa136a0683f5e1d8101ff3c (diff)
crystal: cleanup
Diffstat (limited to 'pkgs/development/compilers/crystal')
-rw-r--r--pkgs/development/compilers/crystal/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/development/compilers/crystal/default.nix b/pkgs/development/compilers/crystal/default.nix
index f418d7a7af93..ba0f9b2ef4a4 100644
--- a/pkgs/development/compilers/crystal/default.nix
+++ b/pkgs/development/compilers/crystal/default.nix
@@ -41,7 +41,6 @@ let
};
arch = archs.${stdenv.system} or (throw "system ${stdenv.system} not supported");
- isAarch64Darwin = stdenv.system == "aarch64-darwin";
nativeCheckInputs = [ git gmp openssl readline libxml2 libyaml libffi ];
@@ -80,7 +79,7 @@ let
, extraBuildInputs ? [ ]
, buildFlags ? [ "all" "docs" "release=1"]
}:
- lib.fix (compiler: stdenv.mkDerivation (finalAttrs: {
+ stdenv.mkDerivation (finalAttrs: {
pname = "crystal";
inherit buildFlags doCheck version;
@@ -235,7 +234,7 @@ let
passthru.buildBinary = binary;
passthru.buildCrystalPackage = callPackage ./build-package.nix {
- crystal = compiler;
+ crystal = finalAttrs.finalPackage;
};
meta = with lib; {
@@ -245,7 +244,7 @@ let
license = licenses.asl20;
maintainers = with maintainers; [ david50407 manveru peterhoeg ];
};
- }))
+ })
);
in