mirror of
https://github.com/msfjarvis/twt.git
synced 2024-06-03 04:08:58 +05:30
feat: add Nix shell configuration
This commit is contained in:
parent
ebff2c1276
commit
5fc21977b6
14
shell.nix
Normal file
14
shell.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
(rust-bin.stable.latest.default.override {
|
||||
extensions =
|
||||
[ "rust-src" "rustc-dev" "rustfmt-preview" "llvm-tools-preview" ];
|
||||
targets =
|
||||
pkgs.lib.optionals pkgs.stdenv.isDarwin [ "aarch64-apple-darwin" ]
|
||||
++ pkgs.lib.optionals pkgs.stdenv.isLinux
|
||||
[ "x86_64-unknown-linux-gnu" ];
|
||||
})
|
||||
] ++ pkgs.lib.optionals stdenv.isDarwin
|
||||
[ pkgs.darwin.apple_sdk.frameworks.Security ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user