From e8ae745437124ee10c4d39ad3ca9a4ba4219add4 Mon Sep 17 00:00:00 2001 From: jerpo Date: Sat, 5 Aug 2023 17:26:30 +0500 Subject: maybe this will work --- 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