From 47663ea8e1eae604d21c6cbdf464da24f37f0957 Mon Sep 17 00:00:00 2001 From: Leonardo Nerone Date: Fri, 12 Aug 2022 14:24:02 -0500 Subject: [PATCH] fix(nix): fix git revision and format file according to statix --- shell.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/shell.nix b/shell.nix index 0a9d0ee17..60bfbfc2d 100644 --- a/shell.nix +++ b/shell.nix @@ -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 () # 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