Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Created April 11, 2020 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lovesegfault/fc4b93718772e4ddbb93ab2b0b62769b to your computer and use it in GitHub Desktop.
Save lovesegfault/fc4b93718772e4ddbb93ab2b0b62769b to your computer and use it in GitHub Desktop.
{ }: let
sources = import ./sources.nix;
overlays = [
(import sources.nixpkgs-mozilla)
(
self: super: {
rustChannel = self.rustChannelOf { channel = "stable"; };
rustFull = self.rustChannel.rust.override {
extensions = [
"clippy-preview"
"rls-preview"
"rustfmt-preview"
"rust-analysis"
"rust-std"
"rust-src"
];
};
cargo = self.rustChannel.rust;
rustc = self.rustChannel.rust;
}
)
(self: super: { crate2nix = self.callPackage sources.crate2nix {}; })
];
pkgs = import <nixpkgs> { inherit overlays; };
in pkgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment