From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2GvMHPqWWGUPHwEAG6o9tA:P1 (envelope-from ) for ; Sat, 18 Nov 2023 11:50:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2GvMHPqWWGUPHwEAG6o9tA (envelope-from ) for ; Sat, 18 Nov 2023 11:50:34 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3A882348BE for ; Sat, 18 Nov 2023 11:50:34 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=alJe5csJ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700304634; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5/bz3MNczkTMndkGJiw3o9PO8ix54eAUwFYRnO5uc1c=; b=oNSNgvXN3nYcPyK3pmfSU0JImSkNeGeKJJPiLM9NbnJiS2SDdrOL7V4UkiJv2SdvgcydiD 38/9y+7bblDJ3EeznKy1IZS1fK8j/ixpiMuJX1C1ioWXutShXqm4TFaiAhD/l9AWjoiiHf ecTduJ+ZytdXUsKBlhfad+c+mH6P1I8S4mvN3iRRz60QfK1umrpsD4hKIHkEZLFDvQyCtG /WAnerFzuwTHz4BRr0WxDjuXBsvohjQSuROuaDkK4RYUY7nJLocrxVYxcmglLEbyVwZkn6 ZMiPQFblztyiI6apI/ZE6pO0pZ4XUT5gJDBedxZTETEG5/vbTfd4xvM3UeQLvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=alJe5csJ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700304634; a=rsa-sha256; cv=none; b=tFdxUYiT9m/3Pp3xSitmcoIgysTnHLZpjuEtKlkAylRLCNbUngC/lc6cYumHryiIR+3rk+ iL8exIBdqI/JhJpC4iPAqZJJZdPlAB+K+vQg1+DO2vStflSXZviqEUVUWy9Hv4GzeDu5qX i5+hJsPc1uifC7P/jsM/keXzVV+RbERmqlt4LWlXQgtU3Iy831Uoo2xXy5Wf3ezswYeET2 AMNynpFLRaa9ae+f4R6nXuAqEqcI6+du9bwYxSKlgP4eir3p30c7WCYzKz0Yime9PA0DrK sCDZE+5j5F2zRXlkZuvqc6Bi+SYBlN4lBT8iHvvgSPndRUgqHEKmxYrhJS2n3w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4Ito-0004Eb-LO; Sat, 18 Nov 2023 05:50:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4Itm-000468-MQ for guix-patches@gnu.org; Sat, 18 Nov 2023 05:50:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4Itm-0002nw-Cp for guix-patches@gnu.org; Sat, 18 Nov 2023 05:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r4Itn-0001PB-4C for guix-patches@gnu.org; Sat, 18 Nov 2023 05:50:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67257] [PATCH 1/2] Add nx-libs Resent-From: nicodebo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Nov 2023 10:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67257 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67257@debbugs.gnu.org Cc: nicodebo Received: via spool by 67257-submit@debbugs.gnu.org id=B67257.17003045515307 (code B ref 67257); Sat, 18 Nov 2023 10:50:03 +0000 Received: (at 67257) by debbugs.gnu.org; 18 Nov 2023 10:49:11 +0000 Received: from localhost ([127.0.0.1]:47882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4Isu-0001NT-Co for submit@debbugs.gnu.org; Sat, 18 Nov 2023 05:49:11 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:45396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4GEh-0005R8-NB for 67257@debbugs.gnu.org; Sat, 18 Nov 2023 02:59:29 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4083dbc43cfso1488535e9.3 for <67257@debbugs.gnu.org>; Fri, 17 Nov 2023 23:59:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700294361; x=1700899161; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5/bz3MNczkTMndkGJiw3o9PO8ix54eAUwFYRnO5uc1c=; b=alJe5csJcoepTuG6wGFxmycB7l81wzpKcsdvI02hz9dJNDOcGnWNTf8fazHkVl63Wj lV1HwTcq7QOCIbL7LkWyIPWrC/bqzWliOGkjKqMLro90+RYncJtMIebm8X8lsM09mbDQ 5plEkUWlaGkBMtpTMVd/RdnZgPIdqB5FX05I2kK9JVLIHde3l6jMSoZE/QORxTLgky2z BLGj3gP3jVUOkbYqzY2KL+GOzztwBTO4cI7JzbEkPzpE2M3UvXuwVVduX7XBz0ZMbCqD AOolpOpr97Ai5qYBKAVu0aJR6C3r1+GNSjD4P1RpyKwefDCoBVsRoEo2ghn7tDeMr6yF 47Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700294361; x=1700899161; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5/bz3MNczkTMndkGJiw3o9PO8ix54eAUwFYRnO5uc1c=; b=O2/Z2VviD03Gclmx04DAKwB1w3DJN8Zo3lrmaL4LGgzKqbXs42UIaXNPxq3IR3mLC8 m3oTXh+cWxsNQvOoJ8yyyHG1ujFLv6dZUOTS0XWayuU8L66rSeh8tE7w3enuew3vyPx3 FEkoVXH9hT/aW8WQQ8dqzUWghP4NS96OOg4p3WoVBSeClNGuiqcDO7hWCyNF2PTSUE4S s+FS+V7Lu2zu7it59hT0Oy9BhiXUatJsbfbC12gwHvMdbo8GQMlyR/79KV8anNRo6qy7 l9VRGp6mZ9gIM6PPx8RjueWN0zA14wGmnViBlEXmpxSUn1tA56TzhTf5LbS388dW5KBL d0Wg== X-Gm-Message-State: AOJu0YwvVaXNv3799svkE8ML38dOkdWj5Wm1vmfdsSeWFkFOy5au6hkL 3+Lph4w4lwMlV/TRD8XCXURWo5M7nsBnrQ== X-Google-Smtp-Source: AGHT+IEJAlQVNjCEwVUyqcBHjOX8+Yw1IqRzw7RAwfiHqfzMqKx1i/5Gqxk4kzQ/SRx8danUSZceXQ== X-Received: by 2002:a05:600c:1caa:b0:401:73b2:f043 with SMTP id k42-20020a05600c1caa00b0040173b2f043mr1337050wms.1.1700294360702; Fri, 17 Nov 2023 23:59:20 -0800 (PST) Received: from localhost ([2a01:cb19:5a2:5500:7e44:57:c552:8b15]) by smtp.gmail.com with UTF8SMTPSA id f19-20020a05600c4e9300b00405d9a950a2sm9962884wmq.28.2023.11.17.23.59.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Nov 2023 23:59:20 -0800 (PST) From: nicodebo Date: Sat, 18 Nov 2023 08:59:17 +0100 Message-ID: <0f4bcaac061c602c21179b8f9c6a6c324d450094.1700243996.git.n.debonnaire@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sat, 18 Nov 2023 05:49:06 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.50 X-Spam-Score: -4.50 X-Migadu-Queue-Id: 3A882348BE X-Migadu-Scanner: mx10.migadu.com X-TUID: enq3WMcubOjf From: nicodebo Change-Id: I13e088521d5e5577fed5d6a4b10867ca10f4293f --- gnu/packages/nx.scm | 140 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 gnu/packages/nx.scm diff --git a/gnu/packages/nx.scm b/gnu/packages/nx.scm new file mode 100644 index 0000000000..9a2ec68ee9 --- /dev/null +++ b/gnu/packages/nx.scm @@ -0,0 +1,140 @@ +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages nx) + #:use-module (gnu packages autotools) + #:use-module (gnu packages commencement) + #:use-module (gnu packages glib) + #:use-module (gnu packages gtk) + #:use-module (gnu packages image) + #:use-module (gnu packages onc-rpc) + #:use-module (gnu packages patchutils) + #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages xdisorg) + #:use-module (gnu packages xml) + #:use-module (gnu packages xorg) + #:use-module (guix build utils) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:use-module (guix licenses) + #:use-module (guix packages)) + +(define-public nx-libs + (package + (name "nx-libs") + (version "3.5.99.27") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ArcticaProject/nx-libs") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ykbza39ksycpyydaiwwbp7hkmdk96v7b36pn989k39lhfwnn8kz")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'replace-shebang-nxdialog + (lambda _ + (substitute* "nxdialog/bin/nxdialog" + (("#!/usr/bin/env python") + (string-append "#!" + (which "python3")))))) + (add-before 'build 'fix-makefile + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (etc (string-append out "/etc"))) + (mkdir-p etc) + (substitute* "Makefile" + (("^gzip -f") "gzip -f -n") ;; reproducible build + (("/usr/local") + out) + (("/etc/nxagent") + etc) + (("./configure") + (string-append "CONFIG_SHELL=" + (which "sh") + " SHELL=" + (which "sh") + " " + (which "sh") + " ./configure"))) + (substitute* '("nx-X11/config/cf/site.def") + (("#include ") + (string-append "#include " "\n" + "#define BourneShell " + (which "sh"))) + (("/usr/local") + out)) + ;; Workaround the following error during the build + ;; process: invalid input: ("_" #) + (substitute* '("nx-X11/Makefile") + (("which") + "echo")) + #t))) + (replace 'build + (lambda _ + (invoke "make" "IMAKE_DEFINES=\"-DUseTIRPC=1\"") #t)) + (add-before 'validate-runpath 'link-libraries + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib")) + (lib-nx-x11 (string-append lib "/nx/X11"))) + ;; TODO: Should I use symlink instead of install-file ? + (for-each (lambda (file) + (install-file file lib-nx-x11)) + (list (string-append lib "/libXcomp.so.3") + (string-append lib + "/libXcompshad.so.3") + (string-append lib "/libNX_X11.so.6"))) + #t)))))) + (native-inputs (list autoconf + automake + libtool + pkg-config + libpng + libjpeg-turbo + xkbcomp + libxfont + libxdamage + libxrandr + libxtst + libxext + libxcomposite + libxinerama + libxpm + libxml2 + font-util + pixman + gccmakedep + imake + quilt + libtirpc + gcc-toolchain)) + ;; python-pygobject inputs: fix `import gi` error when executing nxdialog + ;; gtk+: also needed at runtime by the `gi` python librairy + (propagated-inputs (list perl python-3 python-2 python-pygobject gtk+)) + (synopsis "NX remote desktop library") + (description + "NX technology also known as NX or NoMachine is a protocol that enables +remote desktop access. It's maintained by the artica project, x2go +developpers and TheQVD.") + (home-page "https://github.com/ArcticaProject/nx-libs") + (license gpl2))) -- 2.41.0