Loading pkgs/by-name/ya/yabai/package.nix +2 −14 Original line number Diff line number Diff line Loading @@ -77,21 +77,9 @@ stdenv.mkDerivation (finalAttrs: { }; updateScript = writeShellScript "update-yabai" '' set -o errexit export PATH="${ lib.makeBinPath [ curl jq common-updater-scripts ] }" NEW_VERSION=$(curl --silent https://api.github.com/repos/koekeishiya/yabai/releases/latest | jq '.tag_name | ltrimstr("v")' --raw-output) if [[ "${finalAttrs.version}" = "$NEW_VERSION" ]]; then echo "The new version same as the old version." exit 0 fi NEW_VERSION=$(${lib.getExe curl} --silent https://api.github.com/repos/koekeishiya/yabai/releases/latest | ${lib.getExe jq} '.tag_name | ltrimstr("v")' --raw-output) for platform in ${lib.escapeShellArgs finalAttrs.meta.platforms}; do update-source-version "yabai" "$NEW_VERSION" --ignore-same-version --source-key="sources.$platform" ${lib.getExe' common-updater-scripts "update-source-version"} "yabai" "$NEW_VERSION" --ignore-same-version --source-key="sources.$platform" done ''; }; Loading Loading
pkgs/by-name/ya/yabai/package.nix +2 −14 Original line number Diff line number Diff line Loading @@ -77,21 +77,9 @@ stdenv.mkDerivation (finalAttrs: { }; updateScript = writeShellScript "update-yabai" '' set -o errexit export PATH="${ lib.makeBinPath [ curl jq common-updater-scripts ] }" NEW_VERSION=$(curl --silent https://api.github.com/repos/koekeishiya/yabai/releases/latest | jq '.tag_name | ltrimstr("v")' --raw-output) if [[ "${finalAttrs.version}" = "$NEW_VERSION" ]]; then echo "The new version same as the old version." exit 0 fi NEW_VERSION=$(${lib.getExe curl} --silent https://api.github.com/repos/koekeishiya/yabai/releases/latest | ${lib.getExe jq} '.tag_name | ltrimstr("v")' --raw-output) for platform in ${lib.escapeShellArgs finalAttrs.meta.platforms}; do update-source-version "yabai" "$NEW_VERSION" --ignore-same-version --source-key="sources.$platform" ${lib.getExe' common-updater-scripts "update-source-version"} "yabai" "$NEW_VERSION" --ignore-same-version --source-key="sources.$platform" done ''; }; Loading