From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GKjuGb0YtmHG9wAAgWs5BA (envelope-from ) for ; Sun, 12 Dec 2021 16:43:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8COuFb0YtmHTcQAA1q6Kng (envelope-from ) for ; Sun, 12 Dec 2021 15:43:57 +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 262EC9329 for ; Sun, 12 Dec 2021 16:43:57 +0100 (CET) Received: from localhost ([::1]:47524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwR12-0007XN-B1 for larch@yhetil.org; Sun, 12 Dec 2021 10:43:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwNvL-0002NZ-Pu for guix-devel@gnu.org; Sun, 12 Dec 2021 07:25:51 -0500 Received: from sv-2s11.infcs.de ([194.95.66.48]:43266 helo=ux-2s-mailproxy.inf.h-brs.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwNvH-0004mI-6G for guix-devel@gnu.org; Sun, 12 Dec 2021 07:25:50 -0500 Received: from condor.h-brs.de (p5797302f.dip0.t-ipconnect.de [87.151.48.47]) (authenticated bits=0) by ux-2s-mailproxy.inf.h-brs.de (8.15.2/8.15.2/Debian-8ska0) with ESMTPSA id 1BCCPdcn023948 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 12 Dec 2021 13:25:40 +0100 User-agent: mu4e 1.6.10; emacs 27.2 From: Alexander Asteroth To: guix-devel@gnu.org Subject: How to handle package udev rules? Date: Sun, 12 Dec 2021 13:12:50 +0100 Message-ID: <878rwqf1s4.fsf@h-brs.de> MIME-Version: 1.0 Content-Type: text/plain X-Auth: by SMTP AUTH @ ux-2s11 X-MIMEDefang-Info-ge: Gescannt in Inf@FH-BRS, Regeln s. MiniFAQ E-Mail/Mailscanner X-Scanned-By: MIMEDefang @ FB02 @ H-BRS Received-SPF: pass client-ip=194.95.66.48; envelope-from=alexander.asteroth@h-brs.de; helo=ux-2s-mailproxy.inf.h-brs.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 12 Dec 2021 10:43:47 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639323837; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Tq8imbsbRmFGTGo3si/iGnx/5TWH6NcNDAsFxtp1ufk=; b=VhRiolAby3FzlPksNPaHI0eQqJUgyunSfQJON+rep2BDi7hqKgAhzq4T72Wz+2+g0mMnWg dwlUNOokCAZtVKgYjXDscMEcg4KzAokKto+shnt5iRwzWDOu/DfCjNHW5vDHV+fezuR1Ml wbn8wnFfpo+FuQeZndJdNJua6vHm8uzYttBRCG3yGswlvNJHR5lyQPs0rhjeeiNd39ksI7 c4UD8tu6UYfT0ykWOmgxAkKYJdygrhG3Ohxg2YpYEs8olJNvaEa0E5eEzDwOx+mQrfTF+5 UgtS/905YlhkZ2vKDrWuO2GACgYd2sxyC16HBxeCqOVRkvU6D06lF6DEuxsuBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639323837; a=rsa-sha256; cv=none; b=YYmuq0Ni9FohWlZCVtszbqfxqNPkP48jmBuOykjAszh8APBNwTpx+vAUv2fKAWULqCyulf h8+JP93OSz4EOapzPUm5/rODHeiTw4/P+yYkjeEfznKs8cqn851uATiK+8Hgt4c5yrc1rE g0IbaOM/zyQZ5w68+zbxWS2CWMAfmR6mCNE+7VWma3Q3PT72I40MIRrA3d/t/d3QyB7o+B S855nm6gfSBYjl3W9yhhAWngngKPadSkU4QkoOx7bvjWgePG5EgeXDYpsU0loVlBaTDS0c TcaurCj21KoKH+B+kTKc+F1Jhltl4ZA/S4vCGfZHfiQES8AJ1vcW8ZuLE0qVlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=h-brs.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=h-brs.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 262EC9329 X-Spam-Score: -1.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: CMZX05ajQhh5 Dear all, I'm trying to build my first guix package and so far, after a lot of trial and error to find the right packages providing the necessary cmake functionality I managed to get the package to compile. (up to the point where the install script want's to copy some udev rules file) The package is a linux software that can be used with logitech presenters [0]. Therefore it needs udev rules/devices to communicate with the device. The question now is, what is the correct guix-way to implement this: I tried to import the libgudev module but that that only results in the package wanting to write to another write-protected directory from the store. As I understand, the udev-rules are usually created on system level. That would mean I need to split the package into a service part and a package part? And remove the installation of the udev-file from the package install process? Or is there another way for a package to provide the udev rules from a user-level install? Cheers, Alex ----- [0] https://github.com/jahnf/Projecteur