Test
This commit is contained in:
parent
fa6fd2d1c4
commit
fad92f47cf
2 changed files with 11 additions and 4 deletions
|
@ -1,8 +1,14 @@
|
||||||
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
|
# 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
|
# Useful to avoid using channels when using legacy nix commands
|
||||||
let lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
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
|
in
|
||||||
import (fetchTarball {
|
import (fetchTarball {
|
||||||
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
|
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgs-lock.rev}.tar.gz";
|
||||||
sha256 = lock.narHash;
|
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;
|
||||||
})
|
})
|
|
@ -1,9 +1,10 @@
|
||||||
# shell.nix
|
# shell.nix
|
||||||
let
|
let
|
||||||
|
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
||||||
sops-nix = builtins.fetchTarball {
|
sops-nix = builtins.fetchTarball {
|
||||||
url = "https://github.com/Mic92/sops-nix/archive/master.tar.gz";
|
url = "https://github.com/Mic92/sops-nix/archive/master.tar.gz";
|
||||||
|
sha256 = "";
|
||||||
};
|
};
|
||||||
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
|
||||||
in
|
in
|
||||||
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
|
# 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
|
# Useful to avoid using channels when using legacy nix commands
|
||||||
|
|
Loading…
Reference in a new issue