mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 00:26:24 +00:00
f3fd89af54
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
8 lines
370 B
Nix
8 lines
370 B
Nix
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file.
|
|
# This is useful to avoid using channels when using legacy nix commands.
|
|
let lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
|
in
|
|
import (fetchTarball {
|
|
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
|
|
sha256 = lock.narHash;
|
|
})
|