1
0
forked from clan/clan-core

flake-parts: fix clan-core reference

This commit is contained in:
Jörg Thalheim 2024-04-04 13:30:42 +02:00
parent 5ffae2070d
commit 28e8af60cf
3 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@
./checks/flake-module.nix ./checks/flake-module.nix
./clanModules/flake-module.nix ./clanModules/flake-module.nix
./flakeModules/flake-module.nix ./flakeModules/flake-module.nix
./flakeModules/clan.nix (import ./flakeModules/clan.nix inputs.self)
./devShell.nix ./devShell.nix
./docs/flake-module ./docs/flake-module
./formatter.nix ./formatter.nix

View File

@ -1,16 +1,15 @@
clan-core:
{ {
config, config,
lib, lib,
flake-parts-lib, flake-parts-lib,
inputs, inputs,
self,
... ...
}: }:
let let
inherit (lib) mkOption types; inherit (lib) mkOption types;
buildClan = import ../lib/build-clan { buildClan = import ../lib/build-clan {
inherit lib; inherit lib clan-core;
clan-core = self;
inherit (inputs) nixpkgs; inherit (inputs) nixpkgs;
}; };
@ -70,4 +69,5 @@ in
; ;
}; };
}; };
_file = __curPos.file;
} }

View File

@ -1,7 +1,7 @@
{ config, ... }: { self, config, ... }:
{ {
flake.flakeModules = { flake.flakeModules = {
clan = ./clan.nix; clan = import ./clan.nix self;
default = config.flake.flakeModules.clan; default = config.flake.flakeModules.clan;
}; };
} }