From 28c4884faba45cf719c5fda81cb2895c42226e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 10 Jan 2025 15:01:26 +0100 Subject: [PATCH] fix circompat impure errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- flake.nix | 1 + nix/service.nix | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 891b5dc2..9b2aaa7d 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/nix/service.nix b/nix/service.nix index a6ad52c5..aaa77a36 100644 --- a/nix/service.nix +++ b/nix/service.nix @@ -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."; };