main
1# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
2# Useful to avoid using channels when using legacy nix commands
3let
4  lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
5in
6import (fetchTarball {
7  url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
8  sha256 = lock.narHash;
9})