mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
fix: move to lix flake-compat?
This commit is contained in:
parent
e4533d1200
commit
8d64a966ec
2 changed files with 13 additions and 9 deletions
20
default.nix
20
default.nix
|
|
@ -1,11 +1,15 @@
|
|||
let
|
||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
flakeCompat = fetchTarball {
|
||||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
};
|
||||
kittywitch = import flakeCompat {
|
||||
src = ./.;
|
||||
lockFile = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
flake-compat-node = lockFile.nodes.${lockFile.nodes.root.inputs.flake-compat};
|
||||
flake-compat = builtins.fetchTarball {
|
||||
inherit (flake-compat-node.locked) url;
|
||||
sha256 = flake-compat-node.locked.narHash;
|
||||
};
|
||||
|
||||
flake = (
|
||||
import flake-compat {
|
||||
src = ./.;
|
||||
}
|
||||
);
|
||||
in
|
||||
kittywitch.defaultNix
|
||||
flake.defaultNix
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
};
|
||||
# to allow non-nix 2.4 evaluation
|
||||
flake-compat = {
|
||||
url = "github:edolstra/flake-compat";
|
||||
url = "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz";
|
||||
flake = false;
|
||||
};
|
||||
rbw-bitw = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue