From a4e4c163cd9d4f1c1cd475354d10bbcecb634677 Mon Sep 17 00:00:00 2001 From: Quinn Unger Date: Fri, 20 Feb 2026 14:55:01 +0000 Subject: [PATCH] make fusesoc package overridable --- flakeModule.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flakeModule.nix b/flakeModule.nix index f2cf2e1..a6fb5ce 100644 --- a/flakeModule.nix +++ b/flakeModule.nix @@ -22,6 +22,10 @@ in inherit (lib) types; in { + fusesocPkg = lib.mkOption { + type = types.package; + default = pkgs.fusesoc; + }; withVerilator = lib.mkEnableOption "Include verilator"; verilatorPkg = lib.mkOption { type = types.package; @@ -60,7 +64,7 @@ in text = mkFusesocConf cfg.sources; }; fusesocWrapped = pkgs.writeShellScriptBin "fusesoc" '' - exec ${pkgs.fusesoc}/bin/fusesoc --config ${fusesocConf} $@ + exec ${cfg.fusesocPkg}/bin/fusesoc --config ${fusesocConf} $@ ''; in pkgs.mkShell { -- 2.51.2