From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CE5lElsUumKmWAEAbAwnHQ (envelope-from ) for ; Mon, 27 Jun 2022 22:34:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qPNMElsUumJVIQAAauVa8A (envelope-from ) for ; Mon, 27 Jun 2022 22:34:35 +0200 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 B949D8C6C for ; Mon, 27 Jun 2022 22:34:34 +0200 (CEST) Received: from localhost ([::1]:41904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5vRI-0008LV-MS for larch@yhetil.org; Mon, 27 Jun 2022 16:34:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5vGG-0002Z5-Og for help-guix@gnu.org; Mon, 27 Jun 2022 16:23:08 -0400 Received: from knopi.disroot.org ([178.21.23.139]:41966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5vGF-0004XL-2N for help-guix@gnu.org; Mon, 27 Jun 2022 16:23:08 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C10CC45AA9 for ; Mon, 27 Jun 2022 22:23:03 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7ouXSwRUSQeF for ; Mon, 27 Jun 2022 22:23:02 +0200 (CEST) Message-ID: <03f9e00e-3eb8-d6f3-ea71-7ff49a2126c3@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1656361380; bh=6Tufu9rMIdJF38UVslDflYOlnSR1tJFh+LpIElT3aU0=; h=Date:To:From:Subject; b=ks91KEcIDrA4L1H1qsH09OEdt4OTM0+Z4r1hjpq8jsP8t2QZWfsT5q6LOl87nwakJ GKHfMB9WyRiR3xqCvafp2LH2L15IacyubXzpsmqI04ZLNZPnvt4765R+b98EvDugVl oJCLx1B6spfv2lR8cz5RVb69ZHTX3M+Km+F4IXhtdWJUI5kQbRiwoK5nDsEcwF/ZY0 EqdvqgnDKwMBm4XF6uNV4jvJEDFtLRdgvnscNgv4cet0LV5AkxCY0Khg8vnBM/tzmU NvBZfnV28rnVldiZlJZjeDZLyTbDI8nRIET87dlmClUeo4Z9+db9qPE0dIpDgCYL1m cYF+5etUzBmBA== Date: Mon, 27 Jun 2022 22:22:59 +0200 Mime-Version: 1.0 Content-Language: en-US To: help-guix@gnu.org Subject: Create package to add new files Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=calcium@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 27 Jun 2022 16:34:16 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: calcium From: calcium via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656362075; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Ra7fhIL97klJpgyFAokjJAz4apq9r5B/5TViO8Iaue4=; b=EFW53IV7+PFqF6y6jPtwlKZxoW3ILCdm4vVj5a4Dw+ZqTkEg7nhy2qRqsBkW9jcwScBf5m rLCykgwL/Q3/2lbQqmkX7Ahpz/G8/+CeF6moNfywBJU3okJ3L30LQuJTUiqT5yMXLBZVPT oecLxbFw7Rr4KlHcKnRvKDg860mAw2KMeoxp92Zwo6PyE47f61QF76f+9OwMVA1t2WzYyG /7I3PceF5uDzQoR9Qra+wpx7ZGEKc9nMq4zbJo1iBPQgLBrPoBr3CHfZbzwPuNHXMytZ6K Pog3Cn43SWiVMwr3IYfvqi5SujtrkXyFC3gr4P0DUUACboXkgHFBMnl0TXuSSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656362075; a=rsa-sha256; cv=none; b=bpaXdF7mgS49E+1yznizqRPTxCS7zmsAZ3/MAmmWhHIlBP66/0zS1XmVG9DI4JAcVq5/BF ws7NFlLzxmALOWDP7tzmfRGSMtbhr7Z+16P2W2Q48z8CGWKh9fywv/njr7kckLSH5a6sKK LVUVYTbpbGpLBB/VjcWtv+5mXaNGqK81eDkKM+KWLfUmLqK3F41rd+DHv/rMk7JDTegNjF bwjIYujImyykwJOJU4xnek4vyXh4WD5g+u86+A0iO6sCgaAU1YUIFRkWCSlbMfZVNAff9n WHSnNg0GYixN+X7sPaTdqZWI2vHezNrywTXwXgnAEPZzxnUqxNMYiWGFWFxJ7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=ks91KEcI; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=ks91KEcI; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B949D8C6C X-Spam-Score: -2.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: d++lnNpQKh0R I tried using the procedures text-file* and plain-file but I can't manage to make it works. Im trying to define a package that will be used to add files to cups, in the same ways taht the package brlaser add files. But no luck, every time I try to create a `plain-file` the build fails. Help appreciated (define-public add-my-filters-and-ppd (package/inherit brlaser (name "add-my-filters-and-ppd") (arguments `(#:phases (modify-phases %standard-phases ;; (delete 'configure) ;no 'configure' script (replace 'install (lambda* (#:key outputs #:allow-other-keys) ;; The package's Makefile doesn't provide an "install" ;; rule so do it by ourselves. (let ((filter-dir (string-append (assoc-ref outputs "out") "/lib/cups/filter")) (ppd-dir (string-append (assoc-ref outputs "out") "/share/ppd/cupsfilters"))) ;; (install-file ;; (plain-file "brother_lpdwrapper_printer-model" ;; "ldwrapper string/content of file")) ;; (install-file ;; (plain-file "brother-printer-model-cups-en.ppd" ;; ".ppd string/content of file") ;; ppd-dir) ) #t)))))))