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 {