1
Fork 0
mirror of https://github.com/RGBCube/dix synced 2025-07-28 04:07:46 +00:00

Revert "flake: add rust-overlay for nightly rust"

This reverts commit 8d36bf6dec.
This commit is contained in:
Bloxx12 2025-05-09 15:25:37 +02:00
parent 8d36bf6dec
commit 531fa0278f
No known key found for this signature in database
2 changed files with 12 additions and 39 deletions

View file

@ -3,35 +3,29 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default-linux";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: let
inherit (inputs.nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
eachSystem = lib.genAttrs systems;
pkgsFor = eachSystem (system:
import inputs.nixpkgs {
localSystem.system = system;
overlays = [(import inputs.rust-overlay)];
});
eachSystem = inputs.nixpkgs.lib.genAttrs (import inputs.systems);
pkgsFor = inputs.nixpkgs.legacyPackages;
in {
packages = eachSystem (system: {
default = inputs.self.packages.${system}.ralc;
ralc = pkgsFor.${system}.callPackage ./nix/package.nix {};
});
devShells = eachSystem (system: {
default = pkgsFor.${system}.mkShell {
packages = builtins.attrValues {
inherit
(pkgsFor.${system}.rust-bin.nightly.latest)
(pkgsFor.${system})
cargo
rustc
rustfmt
bacon
;
inherit
(pkgsFor.${system}.rustPackages)
clippy
;
};