masterthesis/nix/fetch-nixpkgs.nix

7 lines
209 B
Nix
Raw Permalink Normal View History

2021-02-03 10:44:28 +01:00
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;
}