From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ur3VN2s2ImEOAQAAgWs5BA (envelope-from ) for ; Sun, 22 Aug 2021 13:35:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qC4PM2s2ImFbdQAAB5/wlQ (envelope-from ) for ; Sun, 22 Aug 2021 11:35:07 +0000 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 79DE21B855 for ; Sun, 22 Aug 2021 13:35:07 +0200 (CEST) Received: from localhost ([::1]:58768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHlko-0003cl-Jp for larch@yhetil.org; Sun, 22 Aug 2021 07:35:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHlkj-0003cb-TS for guix-patches@gnu.org; Sun, 22 Aug 2021 07:35:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHlkj-0005RF-Lp for guix-patches@gnu.org; Sun, 22 Aug 2021 07:35:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHlkj-0006wV-Jd for guix-patches@gnu.org; Sun, 22 Aug 2021 07:35:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50157] [PATCH] gnu: Add xpadneo. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 Aug 2021 11:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50157 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Prikler Cc: 50157@debbugs.gnu.org, Maxime Devos Received: via spool by 50157-submit@debbugs.gnu.org id=B50157.162963208026657 (code B ref 50157); Sun, 22 Aug 2021 11:35:01 +0000 Received: (at 50157) by debbugs.gnu.org; 22 Aug 2021 11:34:40 +0000 Received: from localhost ([127.0.0.1]:38277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHlkK-0006vo-9h for submit@debbugs.gnu.org; Sun, 22 Aug 2021 07:34:40 -0400 Received: from flashner.co.il ([178.62.234.194]:41558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHlkF-0006vW-Be for 50157@debbugs.gnu.org; Sun, 22 Aug 2021 07:34:35 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id 42B4C40214; Sun, 22 Aug 2021 11:34:25 +0000 (UTC) Date: Sun, 22 Aug 2021 14:32:17 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Leo Prikler , Maxime Devos , 50157@debbugs.gnu.org References: <20210821220053.31441-1-leo.prikler@student.tugraz.at> <38410a183350db8ffcf597b9fd1866a269333a05.camel@telenet.be> <5a98ec927846aeebf5c567e94154003fca07b78f.camel@student.tugraz.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="p2vqGD/GguQrz3b/" Content-Disposition: inline In-Reply-To: <5a98ec927846aeebf5c567e94154003fca07b78f.camel@student.tugraz.at> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629632107; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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; bh=5S4S6KRHdc65XrvHwVquZ+XuC7eqEdPY0dD3HN2qf38=; b=QgWZ4MSKeWa0N+8dLcvqzd6hhn7pVwKCzxlM/FFZVu49opG5FvfmHsbDX6PwZD+iOgWGt3 h9obt0MMuCSlhFVtJ/LBy14Q9TgajjaUV0fcAc4vygaMFwO6agAyCXhI/y82SQGYfW33B2 W6/YIs+vOv6wbwABTNpBn9/dD94tDHA8AFw8ItUP99ZfI3Gfkloid8heczrraT+866QAjo GoXTVgbrRgP4b7t8pck4Owxt+bME5s073J1P94+iC6JMi20xuDCwd0drsippyzOfObf4ig Ef/R2Q5RyulnfG+pcRxM/bVW4PYxIVzjLUn8gP6jA/DOWnNA0JxEBSqM7rA0LQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629632107; a=rsa-sha256; cv=none; b=XDqSlOzYqB4fKwP2Lx1TaDSnYEtE/tM1VPvoZAVwahLGc5qEOOpe2AoQdiEYVe/EdO6eu1 weJ7l/bytUX3/VK781TI2U8zTVZkbL5rsp6vGi+bqRBRb01PhQrKCKzh2uRF0xaQhrHTfL Z/pzOvSi8xb8MHKU2t2//rsMw9BCfyRo36fHSY0tI/CjVZrKDyhGfmuY7ReYyfJCU6G1/b u1mpRibhx/6NY/A1dSCagM1QzR/SQf+TS1XyjQiOM7GfutMzERhnzl1AQy+a45fu1v93AL nlUDB5dMoR6Szr3VkvAebrAlZWa6RpD45jlZE9ROX1WgI1BAev7NPzuMsT8xpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -4.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 79DE21B855 X-Spam-Score: -4.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: vHnSR0o7bN1T --p2vqGD/GguQrz3b/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 22, 2021 at 12:08:57PM +0200, Leo Prikler wrote: > Am Sonntag, den 22.08.2021, 11:58 +0200 schrieb Maxime Devos: > > Leo Prikler schreef op zo 22-08-2021 om 00:00 [+0200]: > > > * gnu/packages/linux.scm (xpadneo): New variable. > > > --- > > > gnu/packages/linux.scm | 52 > > > ++++++++++++++++++++++++++++++++++++++++++ > > > 1 file changed, 52 insertions(+) > > >=20 > > > diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm > > > index 7b92be4b9c..385cdd558b 100644 > > > --- a/gnu/packages/linux.scm > > > +++ b/gnu/packages/linux.scm > > > @@ -1505,6 +1505,58 @@ allows some more serious things like adding > > > streaming capabilities to an > > > application by hooking GStreamer into the loopback device.") > > > (license license:gpl2+))) > > > =20 > > > +(define-public xpadneo > > > + (package > > > + (name "xpadneo") > > > + (version "0.9.1") > > > + (source (origin > > > + (method git-fetch) > > > + (uri (git-reference > > > + (url "https://github.com/atar-axis/xpadneo") > > > + (commit (string-append "v" version)))) > > > + (file-name (git-file-name name version)) > > > + (sha256 > > > + (base32 > > > + "0xr0zx134s56h4ij6c3fh8ki0h58h61minbfxcl3sgpgxkh14 > > > ism")))) > > > + (build-system linux-module-build-system) > > > + (arguments > > > + `(#:tests? #f ; no `check' target > > > + #:modules (((guix build copy-build-system) #:prefix copy:) > > > + (guix build linux-module-build-system) > > > + (guix build utils)) > > > + #:imported-modules > > > + ((guix build copy-build-system) > > > + ,@%linux-module-build-system-modules) > > > + #:phases > > > + (modify-phases %standard-phases > > > + (replace 'configure > > > + (lambda args > > > + (with-directory-excursion "hid-xpadneo/src" > > > + (apply (assoc-ref %standard-phases 'configure) > > > args)))) > > > + (replace 'build > > > + (lambda args > > > + (with-directory-excursion "hid-xpadneo/src" > > > + (apply (assoc-ref %standard-phases 'build) args)))) > > > + (replace 'install > > > + (lambda args > > > + (with-directory-excursion "hid-xpadneo/src" > > > + (apply (assoc-ref %standard-phases 'install) > > > args)))) > >=20 > > It might be a bit simpler to add a 'chdir' phase: > >=20 > > (add-after 'unpack 'chdir > > (lambda _ > > (chdir "hid-xpadneo/src"))) > >=20 > > instead of these 'with-directory-excursion'. > That may be true, but in that case there's no "clean" way of exiting.=20 > I could do (chdir "..") in post-install, but that feels weird. >=20 > WDYT? >=20 Where is the license file located? You could add a phaes after 'install to chdir back ".." and then just use install-file for the files for etc. Then the 'install-license phase would also work correctly. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --p2vqGD/GguQrz3b/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmEiNb8ACgkQQarn3Mo9 g1EsSRAAwLqPQDjJ1mB968h80/QoMa69M/6Uh1AoI12o5GMmsMzK67yWqdEnL+IU qLFf7fU4Oc6yGuGf8txFMBLiPcLryr4zXiYGVAqKwadknbYI/AhqhXUuxcwBqmWB SgmqDONinRhsbQEmDXPf7f5LTHBB7BI76pe1HaDEbisAS3cJ8vSnYKPG/TdTDdhX rTwpS3dK0cthyrmeYSV71uCC2rIr0qOa+aN9XP5VMnK9O1n8SXV+o08zRyZTpphZ DgKGGR5+ezogKfEpUNeOB50OUcn8yUJBqLj3jAsmlLBbX+GtGlNII23hQ6jip4Xq +zyFAUqWoCGiZY9HTQ+CbI/rYyCaewhxCA5ZJmlFM8GV395dhum1QQJCKQzJTu6m wbYVjpiemC/Ghebx8Az+6kl27fEUJNePXd74wfPdZ8C6hXPFl77KBAelPaePR6Km GPD8cGQBxHV5ZwN7gm9fF6QVJUwydEG6uKFX90PsGpK0RydNtaxzNWPuaHP/Ghkd ImTFisepOmXHFtlI27uGsPJZC572REibFYHr4g6kotUqqwLThIkp8GRwv6jhF8u4 NHCHC6iEE/Mo0G/qg3LPe0jakygfnS+a8UakNOEtds0iSyDUdey+Wb9tSopl9zX2 vttr2tPtkPTbIUvLTECKaTb5WJBAeinOsGgsv2VMFqK4oTCBp5k= =yQ0x -----END PGP SIGNATURE----- --p2vqGD/GguQrz3b/--