From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ULfMCJgiImF3ZwEAgWs5BA (envelope-from ) for ; Sun, 22 Aug 2021 12:10:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eMGABJgiImHNOgAAB5/wlQ (envelope-from ) for ; Sun, 22 Aug 2021 10:10:32 +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 4FB2C11F56 for ; Sun, 22 Aug 2021 12:10:31 +0200 (CEST) Received: from localhost ([::1]:48022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHkQw-0007vB-65 for larch@yhetil.org; Sun, 22 Aug 2021 06:10:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHkQV-0007v2-5H for guix-patches@gnu.org; Sun, 22 Aug 2021 06:10:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHkQU-0008Le-S5 for guix-patches@gnu.org; Sun, 22 Aug 2021 06:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHkQU-0002YE-ID for guix-patches@gnu.org; Sun, 22 Aug 2021 06:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50157] [PATCH] gnu: Add xpadneo. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 Aug 2021 10:10:02 +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: Maxime Devos , 50157@debbugs.gnu.org Received: via spool by 50157-submit@debbugs.gnu.org id=B50157.16296269459738 (code B ref 50157); Sun, 22 Aug 2021 10:10:02 +0000 Received: (at 50157) by debbugs.gnu.org; 22 Aug 2021 10:09:05 +0000 Received: from localhost ([127.0.0.1]:38215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHkPY-0002Wz-VT for submit@debbugs.gnu.org; Sun, 22 Aug 2021 06:09:05 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:35583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHkPV-0002WY-OA for 50157@debbugs.gnu.org; Sun, 22 Aug 2021 06:09:03 -0400 Received: from nijino.local (62-47-226-13.adsl.highway.telekom.at [62.47.226.13]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GsrgZ1VQvz1LLyW; Sun, 22 Aug 2021 12:08:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4GsrgZ1VQvz1LLyW DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1629626938; bh=C2RIe0BztLEL3rYubJffwVOGJmBOVN/t28yhA7UCySk=; h=Subject:From:To:Date:In-Reply-To:References:From; b=F8T3otYyXKDwyvZBJbILMpOdBGljfCGxbGLLWwHdN/buiaxT5zqV6CaLX8dX7O8dp lBF+Dfw+nFiN3DiW4Gz7+PnCeRWvG+pHh+sH4QsuTJTh1adHqiwtuz1iiEwu9HcvOO PbR3KF45SIRJv+7vrQ9VdBPwg/L0yq3IdMRQIfpY= Message-ID: <5a98ec927846aeebf5c567e94154003fca07b78f.camel@student.tugraz.at> From: Leo Prikler Date: Sun, 22 Aug 2021 12:08:57 +0200 In-Reply-To: <38410a183350db8ffcf597b9fd1866a269333a05.camel@telenet.be> References: <20210821220053.31441-1-leo.prikler@student.tugraz.at> <38410a183350db8ffcf597b9fd1866a269333a05.camel@telenet.be> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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=1629627031; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=C2RIe0BztLEL3rYubJffwVOGJmBOVN/t28yhA7UCySk=; b=g6gOsLQXoCFPFd5TAAxo/rsnJ0h8IMdNdzabrFBCJL9B46i3dWwDydIHB7Hcj2Hg+rXEA+ uYv113t5pulSYbCxkPR+SqwvsTG+NkTohwWUzdSpB7w7A+QvkVnUOrC78hhuZ/V6W8pGSJ kn62uZYNqsocox5zgF5+Nvol6SxtrnDQuASVeal10TjFGm3g4z8hTxuokPLZqNrA+lyJWc bJTNWrJoNcBQaP6XzYLoHQsUIaUVhK11fNB0V1ngwhSqDHEJGzX159o/cbf7zQIb/mbTW+ b2/NvQQliWdiWMHqo0miOga+WZU1YagY4OiPaQYX1/AoqUZk/dj9o79KkxLlBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629627031; a=rsa-sha256; cv=none; b=gkPQsJn1Ikoo5/c6yv4kww3M/KNUq9zvPCFo6Geny4jGycncaKM757lkFyBTiXsUVEAbT2 wkm6sQSUcUeQdN1Wr1xg4Zt08p52sKkDYkwx7ToZGJ/ieFR1e1cDUoQ45gqJxcOWkh/2O+ j6ah9qgZlLQoRC+KJg8uXOoS3HSl6UwDj2kpLPwKpjvDa3WK7eV8O1ys8s44A35E0/hb4V eTQwol/xwG9Gg9nGJ+CAdFQRh05RFngD/X2czrB42Uie1APkX3hTP4sI4NUMjxgQCjjfRG 9kl9ve+1qF9r8/2dTL21oXSkIt4lD/HWPqjlk1kDdqNO05/xkwcYNF2qYji27A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=F8T3otYy; 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: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=F8T3otYy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=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: 4FB2C11F56 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: FFlcLnm0wIsv 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(+) > > > > 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+))) > > > > +(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)))) > > It might be a bit simpler to add a 'chdir' phase: > > (add-after 'unpack 'chdir > (lambda _ > (chdir "hid-xpadneo/src"))) > > instead of these 'with-directory-excursion'. That may be true, but in that case there's no "clean" way of exiting. I could do (chdir "..") in post-install, but that feels weird. WDYT?