Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nix): fix git revision and format file according to statix #653

Merged
merged 1 commit into from
Aug 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
let
pkgs = import (builtins.fetchGit {
# Descriptive name to make the store path easier to identify
name = "nixos-release-22.05";
url = "https://github.com/nixos/nixpkgs/";
# Commit hash for nixos-unstable as of 2018-09-12
# `git ls-remote https://github.com/nixos/nixpkgs nixos-unstable`
ref = "refs/heads/release-22.05";
rev = "cbaacfb8dfa2ddadfb152fa8ef163b40db9041af";
})
# pkgs = import (<nixos>) # or comment pkgs above and uncomment this
pkgs = import
(builtins.fetchGit {
name = "nixos-release-22.05";
url = "https://github.com/nixos/nixpkgs/";
ref = "refs/heads/release-22.05";
rev = "6ddd2d34e3701339eb01bbf1259b258adcc6156c";
})
{
overlays = [
(import (builtins.fetchTarball
"https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
];
};
in pkgs.mkShell {
in
pkgs.mkShell {
buildInputs = with pkgs; [
cargo
cargo-watch
Expand Down