1
Fork 0
mirror of https://github.com/RGBCube/dix synced 2025-07-27 03:37:45 +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

21
flake.lock generated
View file

@ -19,30 +19,9 @@
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay",
"systems": "systems" "systems": "systems"
} }
}, },
"rust-overlay": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1746758179,
"narHash": "sha256-JECUw1YBEsTsVauvupRzE5ykZaJoyhHCpoY87ZZJGas=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "4fd00513eac6b6140c5dced3e1b8133e2369a0f8",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1689347949, "lastModified": 1689347949,

View file

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