Commit Graph

30 Commits

Author SHA1 Message Date
oxalica
3140403d97 flake: remove compatibility with nix < 2.7 layout 2024-05-31 10:02:02 +08:00
oxalica
5d4170f500 flake: add attr minimal to each package
This allows conveniently install a rust version with 'minimal' profile
for quick testing via the flake interface.

```
$ nix shell github:oxalica/rust-overlay#rust_1_76_0.minimal
```
2024-02-18 12:47:07 +08:00
oxalica
b79de030a6 Revert "Rework flake and overlay structures" due to downstream breakage
This reverts commit cf102ae729, reversing
changes made to ffe47b9007.

Nix doesn't allow a dependent flake to have relative inputs.
```
error: cannot fetch input 'path:./systems.nix?lastModified=1&narHash=sh
a256-cyfZqnwhPNzdfQnmUUUVK5fon88TSm/0CwgE7Lf%2BLDU%3D' because it uses a relat
ive path
```

Closes #125
2023-04-18 02:35:16 +08:00
oxalica
a73957ce2e flake: avoid importing nixpkgs if possible 2023-04-18 00:29:46 +08:00
oxalica
ee5a4abc6e flake: drop flake-utils 2023-04-18 00:29:46 +08:00
oxalica
e25b1cc345 flake: split supported systems to allow overriding
See https://github.com/nix-systems/nix-systems
2023-04-18 00:29:46 +08:00
oxalica
dae73e1960 Fix flake compatibility for Nix < 2.7 and add CI 2022-08-10 16:10:00 +08:00
oxalica
28cedcb8df flake: add more supported systems where it evaluates 2022-08-04 15:48:25 +08:00
Oxalica
3e95d6696b Refactor flake output structures
- `defaultOverlay` -> `overlays.default`
  The old name is kept but with a warning.
- `defaultApp` is removed.
- `defaultPackage` -> `packages.default`
- Names in `packages` now use `_` instead of `-` for version separator.
  Eg. `rust_1_49_0`, `rust-nightly_2022-06-29`.
- `rust{,-nightly,-beta}-latest` are removed.
2022-06-30 13:32:25 +08:00
oxalica
264468bbc3 Fix sync script for mismatched target string in URL
In nightly 2022-02-02, aarch64-apple-darwin's rust-docs actually points
to x86_64-apple-darwin's artifact URL. Most tier 2 targets'
rust-docs also forward to -unknown-linux-gnu with the same arch.

Not sure why they do so, but URL forwarding is implemented now.
2022-02-03 19:09:56 +07:00
oxalica
f5a5eddda1
Use autoPatchelfHook to simplify RPATH fixing 2021-12-02 17:10:19 +08:00
oxalica
0623949531
Refactor component resolution part
Pull out component derivations into a separated file, and drop all
legacy resolution code.
2021-12-02 16:29:26 +08:00
oxalica
be4045a65d
Use nixpkgs-unstable in flake input and upgrade 2021-11-22 07:11:03 +08:00
oxalica
825a993ad8
Hoist all utility functions from lib and builtins 2021-11-22 07:11:02 +08:00
Mark Vainomaa
64dc49864b
Move few assertions under tier 1 2021-08-05 21:22:13 +03:00
Mark Vainomaa
769fb53738
Enable aarch64-darwin 2021-08-05 21:00:26 +03:00
oxalica
55b946ef29
Add helper selectLatestNightlyWith 2021-04-30 04:10:39 +08:00
oxalica
d06308345e
Add fallback for rust without profile support 2021-04-07 04:20:25 +08:00
oxalica
d88d58cbcd
Clean up traces during flake check 2021-04-07 04:20:25 +08:00
oxalica
a93dd52294
Refactor component resolution and aggregation 2021-04-07 04:19:37 +08:00
oxalica
abf86629f5
Update flake and expose beta/nightly in packages 2021-04-05 23:24:59 +08:00
oxalica
a04ffd9804
Add support for beta channel 2021-01-05 03:38:46 +08:00
oxalica
77e4b0678a
Add renames support 2021-01-04 02:20:36 +08:00
oxalica
926e333455
Add support for legacy rust-toolchain
Change to immutable URLs
2021-01-03 23:34:51 +08:00
oxalica
59d7ccbb82
Add more checks 2021-01-03 22:28:49 +08:00
oxalica
f0d65000b9
Add auto checks 2021-01-03 21:45:25 +08:00
oxalica
40e2748d32
Tweak flake outputs and README 2021-01-02 20:49:12 +08:00
oxalica
43fa470721
Add nightly support 2021-01-02 02:03:38 +08:00
oxalica
488822942d
Add stable toolchains down to 1.29.0 2021-01-01 22:42:15 +08:00
oxalica
815fa068bc
Init 2021-01-01 20:16:46 +08:00