Skip to content

Commit 6bc6db4

Browse files
committed
Pin nixpkgs
1 parent d6211a3 commit 6bc6db4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

default.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
{ pkgs ? import <nixpkgs> { overlays = [ (import ./overlay.nix) ]; }}:
1+
{ rev ? "c542baa0c894796c92a8173dead027f3b952c22e"
2+
, overlays ? [ (import ./overlay.nix) ]
3+
, pkgs ?
4+
if ((rev == "") || (rev == "default") || (rev == "local"))
5+
then import <nixpkgs> { inherit overlays; }
6+
# Do not guard with hash, so the project is able to use current channels (rolling `rev`) of Nixpkgs
7+
else import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz") { inherit overlays; }
8+
}:
29

310
let
411
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;

0 commit comments

Comments
 (0)