|
10 | 10 | flake-utils.url = "github:numtide/flake-utils"; |
11 | 11 | }; |
12 | 12 |
|
13 | | - outputs = { self, nixpkgs, flake-utils, fenix }: |
14 | | - flake-utils.lib.eachDefaultSystem (system: |
15 | | - let |
16 | | - overlays = [ fenix.overlays.default ]; |
17 | | - pkgs = import nixpkgs { inherit overlays system; }; |
18 | | - toolchain = "latest"; |
19 | | - rustPkg = fenix.packages.${system}.${toolchain}.withComponents [ |
20 | | - "cargo" |
21 | | - "clippy" |
22 | | - "rust-src" |
23 | | - "rustc" |
24 | | - "rustfmt" |
25 | | - ]; |
26 | | - in |
27 | | - { |
28 | | - devShell = pkgs.mkShell { |
29 | | - buildInputs = with pkgs; [ |
| 13 | + outputs = { |
| 14 | + nixpkgs, |
| 15 | + flake-utils, |
| 16 | + fenix, |
| 17 | + ... |
| 18 | + }: |
| 19 | + flake-utils.lib.eachDefaultSystem (system: let |
| 20 | + overlays = [fenix.overlays.default]; |
| 21 | + pkgs = import nixpkgs {inherit overlays system;}; |
| 22 | + toolchain = "latest"; |
| 23 | + rustPkg = fenix.packages.${system}.${toolchain}.withComponents [ |
| 24 | + "cargo" |
| 25 | + "clippy" |
| 26 | + "rust-src" |
| 27 | + "rustc" |
| 28 | + "rustfmt" |
| 29 | + ]; |
| 30 | + in { |
| 31 | + devShell = pkgs.mkShell { |
| 32 | + buildInputs = with pkgs; |
| 33 | + [ |
30 | 34 | act |
31 | 35 | clang |
32 | 36 | elixir |
|
37 | 41 | rustPkg |
38 | 42 | rust-analyzer-nightly |
39 | 43 | cmake |
40 | | - ] ++ lib.optionals stdenv.isDarwin [ |
| 44 | + ] |
| 45 | + ++ lib.optionals stdenv.isDarwin [ |
41 | 46 | darwin.apple_sdk.frameworks.Security |
42 | 47 | darwin.apple_sdk.frameworks.SystemConfiguration |
43 | 48 | ]; |
44 | | - shellHook = '' |
45 | | - mkdir -p .nix-mix |
46 | | - mkdir -p .nix-hex |
47 | | - export MIX_HOME=$PWD/.nix-mix |
48 | | - export HEX_HOME=$PWD/.nix-hex |
49 | | - export PATH=$MIX_HOME/bin:$PATH |
50 | | - export PATH=$HEX_HOME/bin:$PATH |
51 | | - export PATH=$MIX_HOME/escripts:$PATH |
52 | | - ''; |
53 | | - }; |
54 | | - }); |
| 49 | + shellHook = '' |
| 50 | + mkdir -p .nix-mix |
| 51 | + mkdir -p .nix-hex |
| 52 | + export MIX_HOME=$PWD/.nix-mix |
| 53 | + export HEX_HOME=$PWD/.nix-hex |
| 54 | + export PATH=$MIX_HOME/bin:$PATH |
| 55 | + export PATH=$HEX_HOME/bin:$PATH |
| 56 | + export PATH=$MIX_HOME/escripts:$PATH |
| 57 | + ''; |
| 58 | + }; |
| 59 | + }); |
55 | 60 | } |
0 commit comments