Initial commit
This commit is contained in:
6
nix/fetch-nixpkgs.nix
Normal file
6
nix/fetch-nixpkgs.nix
Normal file
@ -0,0 +1,6 @@
|
||||
let
|
||||
spec = builtins.fromJSON (builtins.readFile ./nixpkgs-src.json);
|
||||
in builtins.fetchTarball {
|
||||
url = "https://github.com/${spec.owner}/${spec.repo}/archive/${spec.rev}.tar.gz";
|
||||
inherit (spec) sha256;
|
||||
}
|
9
nix/nixpkgs-src.json
Normal file
9
nix/nixpkgs-src.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"url": "https://github.com/nixos/nixpkgs",
|
||||
"rev": "6a3f5bcb061e1822f50e299f5616a0731636e4e7",
|
||||
"date": "2018-10-05T18:33:19-04:00",
|
||||
"sha256": "1ib96has10v5nr6bzf7v8kw7yzww8zanxgw2qi1ll1sbv6kj6zpd",
|
||||
"fetchSubmodules": false
|
||||
}
|
Reference in New Issue
Block a user