update nix develop
Some checks failed
ssh-test / ssh-test (push) Failing after 16s

This commit is contained in:
iFargle 2023-12-11 14:49:48 +09:00
parent 35c77a3e63
commit f81e3475e1
4 changed files with 8 additions and 5 deletions

5
lib/deploy-rs.nix Normal file
View file

@ -0,0 +1,5 @@
let lock = builtins.fromJSON (builtins.readFile ./flake.lock).nodes.flake-compat.lockedd;
in import (fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
})

View file

@ -1,5 +1,3 @@
# 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;
in import (fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgs-lock.rev}.tar.gz";

View file

@ -1,4 +1,3 @@
# Useful to avoid using channels when using legacy nix commands
let sops-nix-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.sops-nix.locked;
in import (fetchTarball {
url = "https://github.com/Mic92/sops-nix/archive/${sops-nix-lock.rev}.tar.gz";

View file

@ -3,7 +3,8 @@
# Useful to avoid using channels when using legacy nix commands
{
pkgs ? (import ./lib/nixpkgs.nix ) { },
sops-nix ? (import ./lib/sops-nix.nix) { }
sops-nix ? (import ./lib/sops-nix.nix ) { },
deploy-rs ? (import ./lib/deploy-rs.nix) { }
}: {
default = pkgs.mkShell {
NIX_CONFIG = "experimental-features = nix-command flakes";