git.iko.soy/typeable/nixpkgs
on master help sign in
nomachine-client: init at 6.3.6_1

Packages mainly the nxplayer part of the client, since the tray doesn't work very well without the server / a complete installation. Use the shipped libs, since nxplayer really doesn't like any others. I believe they use internally modified versions of many libs. Audio doesn't work: the libasound.so shipped looks for the alsa config files in the wrong place, and even if it finds them, it still doesn't work. Using the one from alsaLib doesn't work either and adds instability.

commit06acfb853fb6598237b944bb129da66593f228e6 authortalyz <kim.lindberger@gmail.com> dateSat 27 Oct 2018, 10:38 (8 years ago) parent67adcd1
3 files changed+90
maintainers/maintainer-list.nix+5 pkgs/tools/admin/nomachine-client/default.nix+83 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+5
@@ -4143,6 +4143,11 @@
41434143 github = "taku0";
41444144 name = "Takuo Yonezawa";
41454145 };
4146+ talyz = {
4147+ email = "kim.lindberger@gmail.com";
4148+ github = "talyz";
4149+ name = "Kim Lindberger";
4150+ };
41464151 tari = {
41474152 email = "peter@taricorp.net";
41484153 github = "tari";
pkgs/tools/admin/nomachine-client/default.nixnew file+83
@@ -0,0 +1,83 @@
1+{ stdenv, lib, file, fetchurl, makeWrapper, autoPatchelfHook, jsoncpp }:
2+let
3+ versionMajor = "6.3";
4+ versionMinor = "6_1";
5+in
6+ stdenv.mkDerivation rec {
7+ name = "nomachine-client-${version}";
8+ version = "${versionMajor}.${versionMinor}";
9+
10+ src =
11+ if stdenv.hostPlatform.system == "x86_64-linux" then
12+ fetchurl {
13+ url = "https://download.nomachine.com/download/${versionMajor}/Linux/nomachine_${version}_x86_64.tar.gz";
14+ sha256 = "1035j2z2rqmdfb8cfm1pakd05c575640604b8lkljmilpky9mw5d";
15+ }
16+ else if stdenv.hostPlatform.system == "i686-linux" then
17+ fetchurl {
18+ url = "https://download.nomachine.com/download/${versionMajor}/Linux/nomachine_${version}_i686.tar.gz";
19+ sha256 = "07j9f6mlq9m01ch8ik5dybi283vrp5dlv156jr5n7n2chzk34kf3";
20+ }
21+ else
22+ throw "NoMachine client is not supported on ${stdenv.hostPlatform.system}";
23+
24+ postUnpack = ''
25+ mv $(find . -type f -name nxclient.tar.gz) .
26+ mv $(find . -type f -name nxplayer.tar.gz) .
27+ rm -r NX/
28+ tar xf nxclient.tar.gz
29+ tar xf nxplayer.tar.gz
30+ rm $(find . -maxdepth 1 -type f)
31+ '';
32+
33+ nativeBuildInputs = [ file makeWrapper autoPatchelfHook ];
34+ buildInputs = [ jsoncpp ];
35+
36+ installPhase = ''
37+ rm bin/nxplayer bin/nxclient
38+
39+ mkdir -p $out/NX
40+ cp -r bin lib share $out/NX/
41+
42+ ln -s $out/NX/bin $out/bin
43+
44+ for i in share/icons/*; do
45+ if [[ -d "$i" ]]; then
46+ mkdir -p "$out/share/icons/hicolor/$(basename $i)/apps"
47+ cp "$i"/* "$out/share/icons/hicolor/$(basename $i)/apps/"
48+ fi
49+ done
50+
51+ mkdir $out/share/applications
52+ cp share/applnk/player/xdg/*.desktop $out/share/applications/
53+ cp share/applnk/client/xdg-mime/*.desktop $out/share/applications/
54+
55+ mkdir -p $out/share/mime/packages
56+ cp share/applnk/client/xdg-mime/*.xml $out/share/mime/packages/
57+
58+ for i in $out/share/applications/*.desktop; do
59+ substituteInPlace "$i" --replace /usr/NX/bin $out/bin
60+ done
61+ '';
62+
63+ postFixup = ''
64+ makeWrapper $out/bin/nxplayer.bin $out/bin/nxplayer --set NX_SYSTEM $out/NX
65+ makeWrapper $out/bin/nxclient.bin $out/bin/nxclient --set NX_SYSTEM $out/NX
66+ '';
67+
68+ dontBuild = true;
69+ dontStrip = true;
70+
71+ meta = with stdenv.lib; {
72+ description = "NoMachine remote desktop client (nxplayer)";
73+ homepage = https://www.nomachine.com/;
74+ license = {
75+ fullName = "NoMachine 6 End-User License Agreement";
76+ url = https://www.nomachine.com/licensing-6;
77+ free = false;
78+ };
79+ maintainers = with maintainers; [ talyz ];
80+ platforms = [ "x86_64-linux" "i686-linux" ];
81+ };
82+ }
83+
pkgs/top-level/all-packages.nix+2
@@ -4362,6 +4362,8 @@ with pkgs;
43624362
43634363 nms = callPackage ../tools/misc/nms { };
43644364
4365+ nomachine-client = callPackage ../tools/admin/nomachine-client { };
4366+
43654367 notify-desktop = callPackage ../tools/misc/notify-desktop {};
43664368
43674369 nkf = callPackage ../tools/text/nkf {};