blob: e6db1d0408f2e320ada06c095b10abfd0c436313 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, fenix }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
fpkgs = fenix.packages.${system};
rust = with fpkgs; combine (with stable; [
defaultToolchain
rust-analyzer
rust-src
]);
in rec {
devShells.${system}.default = pkgs.mkShell {
packages = [ rust ];
};
};
}
|