linear: 1.30.2 -> 1.31.1 (#538869)

This commit is contained in:
Oleksii Filonenko
2026-07-13 01:12:12 +00:00
committed by GitHub
2 changed files with 12 additions and 9 deletions

View File

@@ -7,11 +7,11 @@
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "linear";
version = "1.30.2";
version = "1.31.1";
src = fetchurl {
url = "https://releases.linear.app/Linear-${finalAttrs.version}-universal.dmg";
hash = "sha256-udtN7sOnbT1B684q/JhPFGq8mYvhc5CbTxuJi6NYFac=";
hash = "sha256-haZz9RdbcQiFbCqdy/S25aCsFoSKn3dFAkYL8NgoTYw=";
};
strictDeps = true;
@@ -41,7 +41,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
description = "App to manage software development and track bugs";
homepage = "https://linear.app/";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ iniw ];
maintainers = with lib.maintainers; [
iniw
pradyuman
];
platforms = lib.platforms.darwin;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};

View File

@@ -1,18 +1,18 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils curl gnugrep common-updater-scripts
#!nix-shell -i bash -p coreutils curl gnugrep jq common-updater-scripts
#shellcheck shell=bash
set -eu -o pipefail
set -euo pipefail
source_url="https://releases.linear.app/mac"
version="$(curl -L -I "$source_url" | grep -ioE 'filename="Linear-[0-9]+(\.[0-9]+)*-universal\.dmg"' | grep -oE '[0-9]+(\.[0-9]+)*')"
releases_url="https://releases.linear.app"
version_pattern='filename="Linear-\K[0-9]+(\.[0-9]+)*(?=-universal\.dmg")'
version="$(curl -fsSLI "$releases_url/mac" | grep -ioP "$version_pattern")"
if [[ -z $version ]]; then
echo "Could not find the latest Linear version in release headers" >&2
exit 1
fi
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$(nix-prefetch-url --type sha256 "https://releases.linear.app/Linear-${version}-universal.dmg")")
hash="$(nix store prefetch-file --json "$releases_url/Linear-${version}-universal.dmg" | jq -r .hash)"
update-source-version linear "$version" "$hash" --ignore-same-version