let spec = builtins.fromJSON (builtins.readFile ./nixpkgs.json); in import (builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/${spec.rev}.tar.gz"; sha256 = spec.sha256; }) {} # TODO: add a nixos-infra module