Skip to content

Commit

Permalink
Merge pull request #653 from LeoNero/fix/nix
Browse files Browse the repository at this point in the history
fix(nix): fix git revision and format file according to statix
  • Loading branch information
zkao authored Aug 13, 2022
2 parents f11f14c + 47663ea commit 95481e9
Showing 1 changed file with 9 additions and 11 deletions.
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

0 comments on commit 95481e9

Please sign in to comment.