blob: a61540875af24bdafd3e91e24ba54bcbdd90dab2 (
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
26
27
|
{
description = "A very basic flake";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
in
{
devShell = forAllSystems (system:
let
pkgs = nixpkgsFor."${system}";
in
pkgs.mkShell {
nativeBuildInputs = [
pkgs.rustc
pkgs.cargo
pkgs.rust-analyzer
pkgs.cargo-watch
];
RUST_BACKTRACE = 1;
}
);
};
}
|