biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / station / default.nix
blob43392ae28e483799745df9cae50856bd6c89258a
1 { appimageTools, fetchurl, lib }:
3 let
4   pname = "station";
5   version = "1.52.2";
6   name = "${pname}-${version}";
8   src = fetchurl {
9     url = "https://github.com/getstation/desktop-app-releases/releases/download/${version}/Station-${version}-x86_64.AppImage";
10     sha256 = "0lhiwvnf94is9klvzrqv2wri53gj8nms9lg2678bs4y58pvjxwid";
11   };
13   appimageContents = appimageTools.extractType2 {
14     inherit name src;
15   };
16 in appimageTools.wrapType2 rec {
17   inherit name src;
19   profile = ''
20     export LC_ALL=C.UTF-8
21   '';
23   multiArch = false;
24   extraPkgs = appimageTools.defaultFhsEnvArgs.multiPkgs;
25   extraInstallCommands = ''
26     mv $out/bin/{${name},${pname}}
27     install -m 444 -D ${appimageContents}/browserx.desktop $out/share/applications/browserx.desktop
28     install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/browserx.png \
29       $out/share/icons/hicolor/512x512/apps/browserx.png
30     substituteInPlace $out/share/applications/browserx.desktop \
31       --replace 'Exec=AppRun' 'Exec=${pname}'
32   '';
34   meta = with lib; {
35     description = "A single place for all of your web applications";
36     homepage = "https://getstation.com";
37     license = licenses.mit;
38     platforms = [ "x86_64-linux" ];
39     maintainers = with maintainers; [ ];
40     mainProgram = "station";
41   };