Skip to content

Instantly share code, notes, and snippets.

@jechol
Last active July 19, 2021 07:29
Show Gist options
  • Select an option

  • Save jechol/8af8211cb5329d90169d7da91ca798bd to your computer and use it in GitHub Desktop.

Select an option

Save jechol/8af8211cb5329d90169d7da91ca798bd to your computer and use it in GitHub Desktop.
shell.nix for rust
let
moz_overlay = import (fetchTarball {
url = "https://github.com/mozilla/nixpkgs-mozilla/archive/3f3fba4e2066f28a1ad7ac60e86a688a92eb5b5f.tar.gz";
sha256 = "sha256:1mrj89gzrzhci4lssvzmmk31l715cddp7l39favnfs1qaijly814";
});
nixpkgs = import (fetchTarball {
url =
"https://github.com/nixOS/nixpkgs/archive/21.05.tar.gz";
sha256 = "sha256:1ckzhh24mgz6jd1xhfgx0i9mijk6xjqxwsshnvq789xsavrmsc36";
}) { overlays = [ moz_overlay ]; };
in nixpkgs.mkShell {
buildInputs = [
(nixpkgs.rustChannelOf {
date = "2021-07-18";
channel = "nightly";
}).rust
];
}
let
moz_overlay = import (fetchTarball {
url = "https://github.com/mozilla/nixpkgs-mozilla/archive/3f3fba4e2066f28a1ad7ac60e86a688a92eb5b5f.tar.gz";
sha256 = "sha256:1mrj89gzrzhci4lssvzmmk31l715cddp7l39favnfs1qaijly814";
});
nixpkgs = import (fetchTarball {
url =
"https://github.com/nixOS/nixpkgs/archive/21.05.tar.gz";
sha256 = "sha256:1ckzhh24mgz6jd1xhfgx0i9mijk6xjqxwsshnvq789xsavrmsc36";
}) { overlays = [ moz_overlay ]; };
in nixpkgs.mkShell {
buildInputs = [
(nixpkgs.rustChannelOf {
version = "1.53";
channel = "stable";
}).rust
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment