Initial commit

This commit is contained in:
Valentin Brandl
2021-02-03 10:44:28 +01:00
commit f411cf6dea
14 changed files with 452 additions and 0 deletions

6
nix/fetch-nixpkgs.nix Normal file
View 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
View 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
}