Add nixos dev config
This commit is contained in:
parent
76059f1e85
commit
3b28268279
39
shell.nix
Normal file
39
shell.nix
Normal file
@ -0,0 +1,39 @@
|
||||
let
|
||||
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
|
||||
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
|
||||
rustNightlyChannelClippy = (nixpkgs.rustChannelOf { date = "2020-01-29"; channel = "nightly"; }).rust.override {
|
||||
extensions = [
|
||||
"rust-src"
|
||||
"rls-preview"
|
||||
"rustfmt-preview"
|
||||
];
|
||||
};
|
||||
rustNightlyChannel = nixpkgs.latest.rustChannels.nightly.rust.override {
|
||||
extensions = [
|
||||
"rust-src"
|
||||
"rls-preview"
|
||||
"rustfmt-preview"
|
||||
];
|
||||
};
|
||||
rustStableChannel = nixpkgs.latest.rustChannels.stable.rust.override {
|
||||
extensions = [
|
||||
"rust-src"
|
||||
"rls-preview"
|
||||
"clippy-preview"
|
||||
"rustfmt-preview"
|
||||
];
|
||||
};
|
||||
in
|
||||
with nixpkgs;
|
||||
stdenv.mkDerivation {
|
||||
name = "moz_overlay_shell";
|
||||
buildInputs = [
|
||||
rustNightlyChannelClippy
|
||||
rls
|
||||
rustup
|
||||
pkg-config
|
||||
SDL2
|
||||
pulseaudio
|
||||
];
|
||||
TELOXIDE_TOKEN = "916718418:AAFFtn9WmqipuKCvwiXZ2cEIA_IuNqlO94I";
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user