Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crystal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let
arch = archs.${system};
src = pkgs.fetchurl src_urls.${arch};

llvmPackages = pkgs.llvmPackages_17;
llvmPackages = pkgs.llvmPackages_15;

packages = rec {
crystal_prebuilt =
Expand Down
8 changes: 4 additions & 4 deletions crystal/from_object_file.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
, makeWrapper
, fetchurl
# crystal deps
, clang_17
, llvm_17
, clang_15
, llvm_15
, boehmgc
, gmp
, libevent
Expand Down Expand Up @@ -36,7 +36,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ makeWrapper installShellFiles ];
buildInputs = [
llvm_17
llvm_15
boehmgc
gmp
libevent
Expand All @@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
install -Dm755 crystal $bin/bin/crystal

wrapProgram $bin/bin/crystal \
--prefix PATH : ${lib.makeBinPath [ clang_17 ] } \
--prefix PATH : ${lib.makeBinPath [ clang_15 ] } \
--suffix PATH : ${lib.makeBinPath [ pkg-config which ]} \
--suffix CRYSTAL_PATH : lib:$lib/crystal \
--suffix CRYSTAL_LIBRARY_PATH : ${ lib.makeLibraryPath (buildInputs) } \
Expand Down