From 4b0c88736979fe2cb8e98e8e0ae12caf7e876141 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 25 Apr 2023 20:21:03 +0100 Subject: Add config --- nixpkgs.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 nixpkgs.nix (limited to 'nixpkgs.nix') diff --git a/nixpkgs.nix b/nixpkgs.nix new file mode 100644 index 0000000..041de40 --- /dev/null +++ b/nixpkgs.nix @@ -0,0 +1,8 @@ +# 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; +}) -- cgit v1.2.3-54-g00ecf