-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
32 lines (30 loc) · 904 Bytes
/
flake.nix
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
28
29
30
31
32
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, rust-overlay, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
osxDependencies = with pkgs;
lib.optionals stdenv.isDarwin
[ darwin.apple_sdk.frameworks.Security ];
in {
devShell = pkgs.mkShell {
packages = with pkgs;
[
nodejs
nodePackages.pnpm
tree-sitter
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "clippy" "rustfmt" ];
})
] ++ osxDependencies;
};
});
}