Loading pkgs/by-name/za/zap-chip/package.nix +12 −8 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ electron_31, fetchFromGitHub, writers, withGui ? false, }: let Loading Loading @@ -50,18 +51,21 @@ buildNpmPackage rec { cat .version.json ''; postBuild = '' postBuild = lib.optionalString withGui '' npm exec electron-builder -- \ --dir \ -c.electronDist=${electron.dist} \ -c.electronVersion=${electron.version} ''; postInstall = '' postInstall = '' # this file is also used at runtime install -m644 .version.json $out/lib/node_modules/zap/ '' + lib.optionalString (!withGui) '' # home-assistant chip-* python packages need the executable under the name zap-cli ln -s $out/bin/zap $out/bin/zap-cli mv $out/bin/zap $out/bin/zap-cli ''; meta = { Loading @@ -69,6 +73,6 @@ buildNpmPackage rec { changelog = "https://github.com/project-chip/zap/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ symphorien ]; mainProgram = "zap-cli"; mainProgram = "zap" + lib.optionalString (!withGui) "-cli"; }; } pkgs/top-level/all-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -19094,6 +19094,8 @@ with pkgs; yandex-browser-corporate = yandex-browser.override { edition = "corporate"; }; zap-chip-gui = zap-chip.override { withGui = true; }; myEnvFun = callPackage ../misc/my-env { inherit (stdenv) mkDerivation; }; pkgs/top-level/python-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -5829,7 +5829,7 @@ self: super: with self; { home-assistant-bluetooth = callPackage ../development/python-modules/home-assistant-bluetooth { }; home-assistant-chip-wheels = callPackage ../development/python-modules/home-assistant-chip-wheels { }; home-assistant-chip-wheels = toPythonModule (callPackage ../development/python-modules/home-assistant-chip-wheels { }); home-assistant-chip-clusters = callPackage ../development/python-modules/home-assistant-chip-clusters { }; Loading Loading
pkgs/by-name/za/zap-chip/package.nix +12 −8 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ electron_31, fetchFromGitHub, writers, withGui ? false, }: let Loading Loading @@ -50,18 +51,21 @@ buildNpmPackage rec { cat .version.json ''; postBuild = '' postBuild = lib.optionalString withGui '' npm exec electron-builder -- \ --dir \ -c.electronDist=${electron.dist} \ -c.electronVersion=${electron.version} ''; postInstall = '' postInstall = '' # this file is also used at runtime install -m644 .version.json $out/lib/node_modules/zap/ '' + lib.optionalString (!withGui) '' # home-assistant chip-* python packages need the executable under the name zap-cli ln -s $out/bin/zap $out/bin/zap-cli mv $out/bin/zap $out/bin/zap-cli ''; meta = { Loading @@ -69,6 +73,6 @@ buildNpmPackage rec { changelog = "https://github.com/project-chip/zap/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ symphorien ]; mainProgram = "zap-cli"; mainProgram = "zap" + lib.optionalString (!withGui) "-cli"; }; }
pkgs/top-level/all-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -19094,6 +19094,8 @@ with pkgs; yandex-browser-corporate = yandex-browser.override { edition = "corporate"; }; zap-chip-gui = zap-chip.override { withGui = true; }; myEnvFun = callPackage ../misc/my-env { inherit (stdenv) mkDerivation; };
pkgs/top-level/python-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -5829,7 +5829,7 @@ self: super: with self; { home-assistant-bluetooth = callPackage ../development/python-modules/home-assistant-bluetooth { }; home-assistant-chip-wheels = callPackage ../development/python-modules/home-assistant-chip-wheels { }; home-assistant-chip-wheels = toPythonModule (callPackage ../development/python-modules/home-assistant-chip-wheels { }); home-assistant-chip-clusters = callPackage ../development/python-modules/home-assistant-chip-clusters { }; Loading