fix circompat impure errors

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2025-01-10 15:01:26 +01:00
parent 6aca7612e5
commit 28c4884fab
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 4 additions and 3 deletions

View File

@ -33,6 +33,7 @@
nixosModules.nim-codex = { config, lib, pkgs, ... }: import ./nix/service.nix {
inherit config lib pkgs;
self = pkgs.lib.traceValFn (v: "submodules: ${toString v.submodules)}") self;
circomCompatPkg = circom-compat.packages.${pkgs.system}.default;
};
devShells = forAllSystems (system: let

View File

@ -1,10 +1,10 @@
{ self, config, lib, pkgs, ... }:
{ self, config, lib, pkgs, circomCompatPkg, ... }:
let
inherit (lib)
types mkEnableOption mkOption mkIf literalExpression
mdDoc;
toml = pkgs.formats.toml { };
cfg = config.services.nim-codex;
@ -16,7 +16,7 @@ in
package = mkOption {
type = types.package;
default = pkgs.callPackage ./default.nix { src = self; };
default = pkgs.callPackage ./default.nix { src = self; inherit circomCompatPkg; };
defaultText = literalExpression "pkgs.codex";
description = mdDoc "Package to use as Nim Codex node.";
};