station: 1.52.2 -> 3.3.0 (#408690)

authored by Peder Bergebakken Sundt and committed by GitHub 0e44ec6b a8dd47d5

+31 -24
+31 -24
pkgs/by-name/st/station/package.nix
··· 1 1 { 2 + lib, 2 3 appimageTools, 3 4 fetchurl, 4 - lib, 5 + makeWrapper, 6 + nix-update-script, 5 7 }: 6 - 7 8 let 9 + version = "3.3.0"; 8 10 pname = "station"; 9 - version = "1.52.2"; 10 - 11 11 src = fetchurl { 12 - url = "https://github.com/getstation/desktop-app-releases/releases/download/${version}/Station-${version}-x86_64.AppImage"; 13 - sha256 = "0lhiwvnf94is9klvzrqv2wri53gj8nms9lg2678bs4y58pvjxwid"; 12 + url = "https://github.com/getstation/desktop-app/releases/download/v${version}/Station-x86_64.AppImage"; 13 + hash = "sha256-OiUVRKpU2W1dJ6z9Dqvxd+W4/oNpG+Zolj43ZHpKaO0="; 14 14 }; 15 - 16 15 appimageContents = appimageTools.extractType2 { 17 16 inherit pname version src; 18 17 }; 19 18 in 20 - appimageTools.wrapType2 rec { 19 + appimageTools.wrapType2 { 21 20 inherit pname version src; 22 - 23 - profile = '' 24 - export LC_ALL=C.UTF-8 21 + extraInstallCommands = '' 22 + source "${makeWrapper}/nix-support/setup-hook" 23 + wrapProgram $out/bin/${pname} \ 24 + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" 25 + install -m 444 -D ${appimageContents}/station-desktop-app.desktop \ 26 + $out/share/applications/station-desktop-app.desktop 27 + install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/station-desktop-app.png \ 28 + $out/share/icons/hicolor/512x512/apps/station-desktop-app.png 29 + substituteInPlace $out/share/applications/station-desktop-app.desktop \ 30 + --replace-fail 'Exec=AppRun' 'Exec=station' 25 31 ''; 26 32 27 - extraInstallCommands = '' 28 - install -m 444 -D ${appimageContents}/browserx.desktop $out/share/applications/browserx.desktop 29 - install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/browserx.png \ 30 - $out/share/icons/hicolor/512x512/apps/browserx.png 31 - substituteInPlace $out/share/applications/browserx.desktop \ 32 - --replace 'Exec=AppRun' 'Exec=${pname}' 33 - ''; 33 + passthru = { 34 + updateScript = nix-update-script { 35 + extraArgs = [ "--url=https://github.com/getstation/desktop-app" ]; 36 + }; 37 + }; 34 38 35 - meta = with lib; { 36 - description = "Single place for all of your web applications"; 37 - homepage = "https://getstation.com"; 38 - license = licenses.mit; 39 + meta = { 40 + changelog = "https://github.com/getstation/desktop-app/releases/tag/v${version}"; 41 + description = "A single place for all of your web applications"; 42 + downloadPage = "https://github.com/getstation/desktop-app/releases"; 43 + homepage = "https://getstation.com/"; 44 + license = lib.licenses.asl20; 45 + mainProgram = "station"; 46 + maintainers = with lib.maintainers; [ flexiondotorg ]; 39 47 platforms = [ "x86_64-linux" ]; 40 - maintainers = [ ]; 41 - mainProgram = "station"; 48 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 42 49 }; 43 50 }