4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ lib, stdenv, fetchgit, cups, libssh, libXpm, nx-libs, openldap, openssh
|
|
, mkDerivation, qtbase, qtsvg, qtx11extras, qttools, phonon, pkgconfig }:
|
|
|
|
mkDerivation {
|
|
pname = "x2goclient";
|
|
version = "unstable-2019-07-24";
|
|
|
|
src = fetchgit {
|
|
url = "git://code.x2go.org/x2goclient.git";
|
|
rev = "704c4ab92d20070dd160824c9b66a6d1c56dcc49";
|
|
sha256 = "1pndp3lfzwifyxqq0gps3p1bwakw06clbk6n8viv020l4bsfmq5f";
|
|
};
|
|
|
|
buildInputs = [ cups libssh libXpm nx-libs openldap openssh
|
|
qtbase qtsvg qtx11extras qttools phonon pkgconfig ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace "SHELL=/bin/bash" "SHELL=$SHELL" \
|
|
--replace "lrelease-qt4" "${qttools.dev}/bin/lrelease" \
|
|
--replace "qmake-qt4" "${qtbase.dev}/bin/qmake" \
|
|
--replace "-o root -g root" ""
|
|
'';
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "ETCDIR=$(out)/etc" "build_client" "build_man" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installTargets = [ "install_client" "install_man" ];
|
|
|
|
qtWrapperArgs = [ ''--suffix PATH : ${nx-libs}/bin:${openssh}/libexec'' ];
|
|
|
|
meta = with lib; {
|
|
description = "Graphical NoMachine NX3 remote desktop client";
|
|
homepage = "http://x2go.org/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|