blob: 369aae03863361e23804ae09b6cbee1bced88d60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{ lib
, stdenv
, fetchurl
, alsa-lib
, autoPatchelfHook
, dpkg
, gtk3
, makeWrapper
, mesa
, nss
, systemd
, xorg
}:
stdenv.mkDerivation rec {
pname = "join-desktop";
version = "1.1.2";
src = fetchurl {
url = "https://github.com/joaomgcd/JoinDesktop/releases/download/v${version}/com.joaomgcd.join_${version}_amd64.deb";
sha256 = "sha256-k1LX/HC3tfL4Raipo7wp/LnfrPa38x8NBeKRyHJ72CU=";
};
nativeBuildInputs = [
autoPatchelfHook
dpkg
makeWrapper
];
buildInputs = [
alsa-lib
gtk3
mesa
nss
xorg.libXScrnSaver
xorg.libXtst
];
unpackPhase = "dpkg-deb -x $src .";
runtimeDependencies = [
(lib.getLib systemd)
# TODO: check if they are required
# libnotify
# libappindicator
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/join-desktop
mv usr/share/* $out/share
mv opt/Join\ Desktop/* $out/share/join-desktop
ln -s $out/share/join-desktop/com.joaomgcd.join $out/bin/
substituteInPlace $out/share/applications/com.joaomgcd.join.desktop \
--replace "/opt/Join Desktop/com.joaomgcd.join" "com.joaomgcd.join"
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/joaomgcd/JoinDesktop/";
description = "Desktop app for Join";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
# on https://joaoapps.com/join/desktop/ "Join Desktop is an open source app" but no license
license = licenses.free;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
|