15 stdenv.mkDerivation rec {
16 pname = "join-desktop";
20 url = "https://github.com/joaomgcd/JoinDesktop/releases/download/v${version}/com.joaomgcd.join_${version}_amd64.deb";
21 sha256 = "sha256-k1LX/HC3tfL4Raipo7wp/LnfrPa38x8NBeKRyHJ72CU=";
39 unpackPhase = "dpkg-deb -x $src .";
41 runtimeDependencies = [
43 # TODO: check if they are required
51 mkdir -p $out/bin $out/share/join-desktop
53 mv usr/share/* $out/share
54 mv opt/Join\ Desktop/* $out/share/join-desktop
56 ln -s $out/share/join-desktop/com.joaomgcd.join $out/bin/
58 substituteInPlace $out/share/applications/com.joaomgcd.join.desktop \
59 --replace "/opt/Join Desktop/com.joaomgcd.join" "com.joaomgcd.join"
65 homepage = "https://github.com/joaomgcd/JoinDesktop/";
66 description = "Desktop app for Join";
67 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
68 # on https://joaoapps.com/join/desktop/ "Join Desktop is an open source app" but no license
69 license = licenses.free;
70 platforms = [ "x86_64-linux" ];
71 maintainers = with maintainers; [ SuperSandro2000 ];