0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

station: 1.52.2 -> 3.3.0 (#408690)

This commit is contained in:
Peder Bergebakken Sundt 2025-06-06 03:07:29 +02:00 committed by GitHub
commit 0e44ec6b3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,43 +1,50 @@
{
lib,
appimageTools,
fetchurl,
lib,
makeWrapper,
nix-update-script,
}:
let
version = "3.3.0";
pname = "station";
version = "1.52.2";
src = fetchurl {
url = "https://github.com/getstation/desktop-app-releases/releases/download/${version}/Station-${version}-x86_64.AppImage";
sha256 = "0lhiwvnf94is9klvzrqv2wri53gj8nms9lg2678bs4y58pvjxwid";
url = "https://github.com/getstation/desktop-app/releases/download/v${version}/Station-x86_64.AppImage";
hash = "sha256-OiUVRKpU2W1dJ6z9Dqvxd+W4/oNpG+Zolj43ZHpKaO0=";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 rec {
appimageTools.wrapType2 {
inherit pname version src;
profile = ''
export LC_ALL=C.UTF-8
'';
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/browserx.desktop $out/share/applications/browserx.desktop
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/browserx.png \
$out/share/icons/hicolor/512x512/apps/browserx.png
substituteInPlace $out/share/applications/browserx.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
source "${makeWrapper}/nix-support/setup-hook"
wrapProgram $out/bin/${pname} \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
install -m 444 -D ${appimageContents}/station-desktop-app.desktop \
$out/share/applications/station-desktop-app.desktop
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/station-desktop-app.png \
$out/share/icons/hicolor/512x512/apps/station-desktop-app.png
substituteInPlace $out/share/applications/station-desktop-app.desktop \
--replace-fail 'Exec=AppRun' 'Exec=station'
'';
meta = with lib; {
description = "Single place for all of your web applications";
homepage = "https://getstation.com";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = [ ];
passthru = {
updateScript = nix-update-script {
extraArgs = [ "--url=https://github.com/getstation/desktop-app" ];
};
};
meta = {
changelog = "https://github.com/getstation/desktop-app/releases/tag/v${version}";
description = "A single place for all of your web applications";
downloadPage = "https://github.com/getstation/desktop-app/releases";
homepage = "https://getstation.com/";
license = lib.licenses.asl20;
mainProgram = "station";
maintainers = with lib.maintainers; [ flexiondotorg ];
platforms = [ "x86_64-linux" ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}