yabai: 7.1.11 -> 7.1.13 (#392120)

Changed files
+5 -17
pkgs
by-name
ya
yabai
+5 -17
pkgs/by-name/ya/yabai/package.nix
···
}:
stdenv.mkDerivation (finalAttrs: {
pname = "yabai";
-
version = "7.1.11";
+
version = "7.1.13";
src =
finalAttrs.passthru.sources.${stdenv.hostPlatform.system}
···
# See the comments on https://github.com/NixOS/nixpkgs/pull/188322 for more information.
"aarch64-darwin" = fetchzip {
url = "https://github.com/koekeishiya/yabai/releases/download/v${finalAttrs.version}/yabai-v${finalAttrs.version}.tar.gz";
-
hash = "sha256-WyoVGuCotiGpSxpq9hXSTnto4k945FeL+4+DlBp6MhA=";
+
hash = "sha256-1/fPBLbC6wcgQAX/soCCVeIUXXm124RnxTJJc/7ayzo=";
};
"x86_64-darwin" = fetchFromGitHub {
owner = "koekeishiya";
repo = "yabai";
rev = "v${finalAttrs.version}";
-
hash = "sha256-r2uPzozDPH97k3IiweU7Hefhnzm9/TJfC+5p/GiJ+T0=";
+
hash = "sha256-6yCMd7+RBqRj3OjnAwm3Ex4CVKVFPWyWdeMqXFaHZlM=";
};
};
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
'';
};