40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
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";
|
|
}
|