···
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=";
appimageContents = appimageTools.extractType2 {
inherit pname version src;
20
-
appimageTools.wrapType2 rec {
19
+
appimageTools.wrapType2 {
inherit pname version src;
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'
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}'
34
+
updateScript = nix-update-script {
35
+
extraArgs = [ "--url=https://github.com/getstation/desktop-app" ];
36
-
description = "Single place for all of your web applications";
37
-
homepage = "https://getstation.com";
38
-
license = licenses.mit;
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 ];
platforms = [ "x86_64-linux" ];
41
-
mainProgram = "station";
48
+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];