mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
station: 1.52.2 -> 3.3.0 (#408690)
This commit is contained in:
commit
0e44ec6b3b
1 changed files with 31 additions and 24 deletions
|
@ -1,43 +1,50 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
appimageTools,
|
appimageTools,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
lib,
|
makeWrapper,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
version = "3.3.0";
|
||||||
pname = "station";
|
pname = "station";
|
||||||
version = "1.52.2";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/getstation/desktop-app-releases/releases/download/${version}/Station-${version}-x86_64.AppImage";
|
url = "https://github.com/getstation/desktop-app/releases/download/v${version}/Station-x86_64.AppImage";
|
||||||
sha256 = "0lhiwvnf94is9klvzrqv2wri53gj8nms9lg2678bs4y58pvjxwid";
|
hash = "sha256-OiUVRKpU2W1dJ6z9Dqvxd+W4/oNpG+Zolj43ZHpKaO0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extractType2 {
|
appimageContents = appimageTools.extractType2 {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
appimageTools.wrapType2 rec {
|
appimageTools.wrapType2 {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
|
|
||||||
profile = ''
|
|
||||||
export LC_ALL=C.UTF-8
|
|
||||||
'';
|
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
install -m 444 -D ${appimageContents}/browserx.desktop $out/share/applications/browserx.desktop
|
source "${makeWrapper}/nix-support/setup-hook"
|
||||||
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/browserx.png \
|
wrapProgram $out/bin/${pname} \
|
||||||
$out/share/icons/hicolor/512x512/apps/browserx.png
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
||||||
substituteInPlace $out/share/applications/browserx.desktop \
|
install -m 444 -D ${appimageContents}/station-desktop-app.desktop \
|
||||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
$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; {
|
passthru = {
|
||||||
description = "Single place for all of your web applications";
|
updateScript = nix-update-script {
|
||||||
homepage = "https://getstation.com";
|
extraArgs = [ "--url=https://github.com/getstation/desktop-app" ];
|
||||||
license = licenses.mit;
|
};
|
||||||
platforms = [ "x86_64-linux" ];
|
};
|
||||||
maintainers = [ ];
|
|
||||||
|
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";
|
mainProgram = "station";
|
||||||
|
maintainers = with lib.maintainers; [ flexiondotorg ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue