From 8d36da17cab32530f4a0ec79432b1b5a7f744d90 Mon Sep 17 00:00:00 2001 From: Jakub Trzeciak Date: Thu, 19 Oct 2023 10:06:57 +0200 Subject: Overlays and more --- 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