master ← Eveeifyeve:nim-refractor-1
opened 06:24PM - 05 Mar 26 UTC
**Why do a huge refractor?** With the upcoming nim changes (eg. new versions) it… 's time that nixpkgs had a huge refractor of packages/attention to keep up so this pr deprecates nim1 and nim2 (with respective unwrap) packages with [the upgrade nim to 2.2.8](https://nim-lang.org/blog/2026/02/23/nim-228.html) and making nim use a boostrapped compiler. This [fixes the nim-unwrapped pname issue](https://github.com/NixOS/nixpkgs/issues/485742) with using name instead of pname. This also marks nim_lk a bad platform [due to an issue with nim lk accessing darwin filesystem](#505700) and finally this also moves the os and cpu to stdenv to make it more accessible to packages without having to reference nim.
There was a [old previous pr here](https://github.com/NixOS/nixpkgs/pull/461756), however I accidentally was on the wrong branch working on the nim builder refractor as this pr is already big enough, I wanted the version change/stdenv move in this pr and did a push that deleted the changes accidentally, so I remade this pr. 😆
## Things done
- Built on platform:
- [x] x86_64-linux
- [x] aarch64-linux
- [x] x86_64-darwin
- [x] aarch64-darwin
- Tested, as applicable:
- [ ] [NixOS tests] in [nixos/tests].
- [ ] [Package tests] at `passthru.tests`.
- [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
- [x] Ran `nixpkgs-review` on this PR. See [nixpkgs-review usage].
- [x] Tested basic functionality of all binary files, usually in `./result/bin/`.
- Nixpkgs Release Notes
- [x] Package update: when the change is major or breaking.
- NixOS Release Notes
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
- [x] Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.
[NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
[Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
[nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage
[CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
[lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
[maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
[nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
[pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
[pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test
Contains huge refractor of nim packages (removing old versions making packages broken/support newer nim versions and moving the os and cpu target to stdenv), Approved by another nim team member , I would like to hopefully get this out before the breaking changes in 26.05 ideally.