File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 4
4
nixpkgs = fetchNixpkgs {
5
5
rev = "804060ff9a79ceb0925fe9ef79ddbf564a225d47" ;
6
6
7
- sha256 = "01pb6p07xawi60kshsxxq1bzn8a0y4s5jjqvhkwps4f5xjmmwav3" ;
8
-
9
- outputSha256 = "0ga345hgw6v2kzyhvf5kw96hf60mx5pbd9c4qj5q4nan4lr7nkxn" ;
7
+ sha256 = "0ga345hgw6v2kzyhvf5kw96hf60mx5pbd9c4qj5q4nan4lr7nkxn" ;
10
8
} ;
11
9
12
10
readDirectory = import ./nix/readDirectory.nix ;
Original file line number Diff line number Diff line change 1
1
{ rev # The Git revision of nixpkgs to fetch
2
- , sha256 # The SHA256 of the downloaded data
3
- , outputSha256 ? null # The SHA256 fixed-output hash
2
+ , sha256 # The SHA256 hash of the unpacked archive
4
3
, system ? builtins . currentSystem # This is overridable if necessary
5
4
} :
6
5
@@ -10,15 +9,15 @@ if (0 <= builtins.compareVersions builtins.nixVersion "1.12")
10
9
then (
11
10
builtins . fetchTarball {
12
11
url = "https://github.com/NixOS/nixpkgs/archive/${ rev } .tar.gz" ;
13
- sha256 = outputSha256 ;
12
+ inherit sha256 ;
14
13
} )
15
14
16
15
# This hack should at least work for Nix 1.11
17
16
else (
18
17
( rec {
19
18
tarball = import <nix/fetchurl.nix> {
20
- url = "https://github.com/NixOS/nixpkgs/archive/${ rev } .tar.gz" ;
21
- inherit sha256 ;
19
+ url = "https://github.com/NixOS/nixpkgs/archive/${ rev } .tar.gz" ;
20
+ sha256 = null ;
22
21
} ;
23
22
24
23
builtin-paths = import <nix/config.nix> ;
41
40
tar = builtins . storePath builtin-paths . tar ;
42
41
gzip = builtins . storePath builtin-paths . gzip ;
43
42
coreutils = builtins . storePath builtin-paths . coreutils ;
44
- } // ( if null == outputSha256 then { } else {
43
+ } // ( if null == sha256 then { } else {
45
44
outputHashMode = "recursive" ;
46
45
outputHashAlgo = "sha256" ;
47
- outputHash = outputSha256 ;
46
+ outputHash = sha256 ;
48
47
} ) ) ;
49
48
} ) . nixpkgs )
You can’t perform that action at this time.
0 commit comments