File tree Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 1
1
{ ...} @args :
2
2
3
3
let
4
- pin = ( __fromJSON ( __readFile ./flake.lock ) ) . nodes . nixpkgs-2205 . locked ;
4
+ pins = ( __fromJSON ( __readFile ./flake.lock ) ) . nodes ;
5
+ nixpkgsPin = pins . nixpkgs-2205 . locked ;
6
+ flakeCompatPin = pins . flake-compat . locked ;
5
7
nixpkgsSrc =
6
8
builtins . fetchTarball {
7
- url = "https://github.com/NixOS/nixpkgs/archive/${ pin . rev } .tar.gz" ;
8
- sha256 = pin . narHash ;
9
+ url = "https://github.com/NixOS/nixpkgs/archive/${ nixpkgsPin . rev } .tar.gz" ;
10
+ sha256 = nixpkgsPin . narHash ;
9
11
} ;
10
12
pkgs = args . pkgs or ( import nixpkgsSrc { } ) ;
11
13
flake-compat =
12
14
pkgs . fetchzip {
13
- url = "https://github.com/edolstra/flake-compat/archive/5523c47f13259b981c49b26e28499724a5125fd8 .tar.gz" ;
14
- sha256 = "sha256-7IySNHriQjzOZ88DDk6VDPf1GoUaOrOeUdukY62o52o=" ;
15
+ url = "https://github.com/edolstra/flake-compat/archive/{flakeCompatPin.rev} .tar.gz" ;
16
+ sha256 = flakeCompatPin . narHash ;
15
17
} ;
16
18
self = import flake-compat {
17
19
# We bypass flake-compat's rootSrc cleaning by evading its detection of this as a git
Original file line number Diff line number Diff line change 8
8
nixpkgs-2111 = { url = "github:NixOS/nixpkgs/nixpkgs-21.11-darwin" ; } ;
9
9
nixpkgs-2205 = { url = "github:NixOS/nixpkgs/nixpkgs-22.05-darwin" ; } ;
10
10
nixpkgs-unstable = { url = "github:NixOS/nixpkgs/nixpkgs-unstable" ; } ;
11
+ flake-compat = { url = "github:hamishmack/flake-compat/hkm/pkgs-fetch" ; flake = false ; } ;
11
12
flake-utils = { url = "github:numtide/flake-utils" ; } ;
12
13
hydra . url = "hydra" ;
13
14
hackage = {
You can’t perform that action at this time.
0 commit comments