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