Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update shell.nix to use LLVM 18 from nixpkgs-unstable #14592

Closed
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
11 changes: 4 additions & 7 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,13 @@
# $ nix-shell --pure --arg musl true
#

{llvm ? 11, musl ? false, system ? builtins.currentSystem}:
{llvm ? 18, musl ? false, system ? builtins.currentSystem}:

let
nixpkgs = import (builtins.fetchTarball {
name = "nixpkgs-23.05";
url = "https://github.com/NixOS/nixpkgs/archive/23.05.tar.gz";
sha256 = "10wn0l08j9lgqcw8177nh2ljrnxdrpri7bp0g7nvrsn9rkawvlbf";
}) {
inherit system;
};
name = "nixpkgs-unstable";
url = "https://github.com/NixOS/nixpkgs/archive/master.tar.gz";
}) { inherit system; };

pkgs = if musl then nixpkgs.pkgsMusl else nixpkgs;
llvmPackages = pkgs."llvmPackages_${toString llvm}";
Expand Down
Loading