From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id AF1oNXnG12UebgAA62LTzQ:P1 (envelope-from ) for ; Thu, 22 Feb 2024 23:11:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id AF1oNXnG12UebgAA62LTzQ (envelope-from ) for ; Thu, 22 Feb 2024 23:11:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=futurile.net header.s=selector1 header.b=seGGffAm; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708639814; 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=e9OaV2NPI/7nm+iDpZrcRIsDor6GoYyfQfc5R9WfQ+s=; b=N2X6mVyx8KM6imY5MYNp9/mEeRALs5y2u5/2il6efnZydiecATngpbKZIc3vF/voTpxXi1 5ZxcVilsIHjusz7VIxod0+74qvXuV1lEXnSUwBEjyQJnNceKe8yW93e8ThJrn8q1zx9g09 PrbtbjwmYZK1DSCgnLt79eXXst0oraRQIJQul22qZo1v6cVdo7K6djbVpZQvqi6Fhw05QI VZXs/cakwR7Ftr3D6BJLvaTYvib4fmf+J1Fv9mE7jg+YicTY2IwzpQzhTf570h25gTiTSu cSbpK/HtWM2RzYNY29o+/6odBrh363lE7souHakWQY5YJJbb6RpGIQWO284duw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=futurile.net header.s=selector1 header.b=seGGffAm; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708639814; a=rsa-sha256; cv=none; b=Kg/hRfVseSrNYz7bqUug5cI4bLYQKqotOOGctJUuh5whoMAi6eXGcSjCVmqcvwf/8/doVi vsjtfeFBg5gLOEDf61ztz8Gs8pp5yTaBjyvlPXsffBa6afrgDcSWzExQ42xhk/lMFhRHT0 Ud7HS53HfygtqvrAc9fvuuWA0qHX4qMEpBFQM5u+1jh52GV2qbGUb9tuBSSxOrAfmRJTrz uN4ajiw+DqCKlkTHx9/1jTTWeGQ5NXwNNVRGVmeXdLWMnc4Fo3fT6Hs93aiOBFMdkAc7lg T0ZUHViczl8aBty0OuH/JPuq7zoqELaqc83FKuN/U2aoBqdpna1IWOWjatHHrA== 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 A75635246D for ; Thu, 22 Feb 2024 23:10:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdHGH-0004fn-UY; Thu, 22 Feb 2024 17:09:50 -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 1rdHGA-0004fA-1D for guix-patches@gnu.org; Thu, 22 Feb 2024 17:09:42 -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 1rdHG9-0000hN-8L for guix-patches@gnu.org; Thu, 22 Feb 2024 17:09:41 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdHGW-00024D-9q; Thu, 22 Feb 2024 17:10:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67257] [PATCH v2 1/2] gnu: Add nx-libs. Resent-From: Steve George Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org, steve@futurile.net Resent-Date: Thu, 22 Feb 2024 22:10:04 +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: nicolas.debonnaire@gmail.com, steve@futurile.net X-Debbugs-Original-Cc: nicodebo , Steve George , guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17086397817837 (code B ref -1); Thu, 22 Feb 2024 22:10:04 +0000 Received: (at submit) by debbugs.gnu.org; 22 Feb 2024 22:09:41 +0000 Received: from localhost ([127.0.0.1]:35047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdHG8-00022G-2o for submit@debbugs.gnu.org; Thu, 22 Feb 2024 17:09:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:57188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdHFz-00021F-16 for submit@debbugs.gnu.org; Thu, 22 Feb 2024 17:09:32 -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 1rdHFZ-0004Yq-3w for guix-patches@gnu.org; Thu, 22 Feb 2024 17:09:05 -0500 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdHFV-0000dT-Hi for guix-patches@gnu.org; Thu, 22 Feb 2024 17:09:04 -0500 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rdHFQ-008bbh-Gr; Thu, 22 Feb 2024 23:08:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From; bh=e9OaV2NPI/7nm+iDpZrcRIsDor6GoYyfQfc5R9WfQ+s=; b=seGGffAmdvXabVQMXapuejv/bQ jQmfhmAGqQlNnstUx5bs78c35XQv47fGxp/CmGNAl83eS/zZwXRdl+wULeQGdDc1oLSruRRYo0tTE ANooQx5Ww62XPv8tU3B67Q/HgwEs1YtcOIGyB6WwFkAvbQpPEcyTRG/exQRWrQKqs8LGJP46+Fys+ x/Kceo5Ih2ro3pWUi5y1YnksY4WVSUI3ZQ76ZLWIIF9xFFoQPV4PPG8qiwMZD/NPKBVYPlOeD6GW0 OflvdQsuDINKIm7uXmqcear9gqoeSQ6G/RWpGGtMKb//+TFz+K/r02CnjmMgRyoHW9RrbIHcS1mEQ oNPeGC+A==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rdHFP-0005on-Uv; Thu, 22 Feb 2024 23:08:56 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rdHF7-0028u5-Gl; Thu, 22 Feb 2024 23:08:37 +0100 From: Steve George Date: Thu, 22 Feb 2024 22:08:19 +0000 Message-ID: <834a3cc5e7e16f94691c1bb726f1dd1cc5edb6d0.1708638616.git.steve@futurile.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: permerror client-ip=2a0c:5a00:149::26; envelope-from=steve@futurile.net; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.07 X-Spam-Score: -1.07 X-Migadu-Queue-Id: A75635246D X-Migadu-Scanner: mx13.migadu.com X-TUID: 6Q8MRR8bWfLd From: nicodebo * gnu/packages/nx.scm: New file. * gnu/packages/nx.scm (nx-libs): New variable. Reviewed-by: Steve George Change-Id: I13e088521d5e5577fed5d6a4b10867ca10f4293f --- gnu/packages/nx.scm | 141 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 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 00000000000..92542c02a7b --- /dev/null +++ b/gnu/packages/nx.scm @@ -0,0 +1,141 @@ +;;; 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 (guix build utils) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #: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)) + +(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 ;; no tests in this project + #: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)))))) + (inputs (list perl + python + python-pygobject + gtk+)) + (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)) + (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 +developers and TheQVD.") + (home-page "https://github.com/ArcticaProject/nx-libs") + (license license:gpl2))) -- 2.41.0