Closed LamprosPitsillos closed 11 months ago
I think you're using an older version of nixpkgs that didn't have this package yet - try:
nix flake lock --update-input nixpkgs
... and then rebuild your system again.
nix flake lock --update-input nixpkgs
will do and report back.
Shouldnt nix flake update
be enough ? I updated a few days ago
Shouldnt
nix flake update
be enough ? I updated a few days ago
It would be enough, but llvm17 has been merged just 5 days ago, so you've probably run that command 6 days ago or more 👀
It's now , fixed thanks!
This issue exists again for clang_17 and clang-tools_17. Same problem and expected result as above.
nix-info -m
- system: `"x86_64-linux"`
- host os: `Linux 6.1.64, NixOS, 23.11 (Tapir), 23.11pre-git`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.1`
- channels(root): `""`
- nixpkgs: `/nix/store/m9anmz1n512blbd582kw46pxyns3pvah-nixos-stable-20240326`
@donottellmetonottellyou, you're actually facing the same issue the original author did, i.e. you're using too old Nixpkgs.
7c6e3666e2040fb64d43b209b84f65898ea3095d
is from Nov 29, 2023 - I'm guessing at some point you've just updated name
inside the call to fetchGit
, but it's rev
which matters the most there.
Wait what? What am I doing wrong here:
git ls-remote https://github.com/nixos/nixpkgs 23.11
7c6e3666e2040fb64d43b209b84f65898ea3095d refs/tags/23.11
Oof, it looks like I was targeting the 23.11 tag, not the proper nixos branch:
git ls-remote https://github.com/nixos/nixpkgs nixos-23.11
219951b495fc2eac67b1456824cc1ec1fd2ee659 refs/heads/nixos-23.11
I officially feel like an idiot.
Yes, I had been checking the rev, and had been absentmindedly not noticing that it wasn't changing...
Posting this here so if anyone makes the same mistake (probably not) they see this.
Describe the bug
Even though the package is in the NixPackages search , while building it is an
error: undefined variable 'clang-tools_17'
Steps To Reproduce
Steps to reproduce the behavior:
clang-tools_17
topackages
Expected behavior
Clang tools 17 to be installed
Screenshots
Additional context
Add any other context about the problem here. https://github.com/LamprosPitsillos/nixos-config/blob/main/flake.lock My flake lock along with the rest of my conf
Notify maintainers
@Patryk27
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.