14 lines
No EOL
630 B
Nix
14 lines
No EOL
630 B
Nix
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
|
|
# Useful to avoid using channels when using legacy nix commands
|
|
let
|
|
nixpkgs-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
|
sops-nix-lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.sops-nix.locked;
|
|
in
|
|
import (fetchTarball {
|
|
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgs-lock.rev}.tar.gz";
|
|
sha256 = nixpkgs-lock.narHash;
|
|
})
|
|
import (fetchTarball {
|
|
url = "https://github.com/Mic92/sops-nix/archive/${sops-nix-lock.rev}.tar.gz";
|
|
sha256 = sops-nix.lock.narHash;
|
|
}) |