From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uPx6IAt/M2foDAAAe85BDQ:P1 (envelope-from ) for ; Tue, 12 Nov 2024 16:15:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uPx6IAt/M2foDAAAe85BDQ (envelope-from ) for ; Tue, 12 Nov 2024 17:15:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=obspm.fr header.s=mail header.b=N9zNa+or; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=obspm.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731428106; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hbcBLQIRfthbrCt2IPSEyAMaSYHolGbGpeek95X8Hyg=; b=olShJcxJYOXufooyDWqzB1RhL8h6q3+AuqjTEW91sjSVvs6oUPCKhAzTcSzMKV79Zv/RH9 mA1A7MWU1a+QLJqbJUcWppsxO6I+a2MM3X66wqCHPv/07BLVFE9+AcXGdKim+gVxOwVEGw vquJNQNlyqIkXr1L2u/cxdjy8Umd3X3JWixPG/aEjXPdrW/BDXk1s9SLdhawv9FgALe8d1 95TaXH4ZrndXgyQBbflWUJjd1xIRBBlNhh6KEioVo1WJ+CliR8KFZ4Nz7ELIcDEpdV1c1I ubEu2IrU93G/1d1PQK0WiYj1nrd++ZzYpMiPmCNImZThV+3ywLwf35z++BTUnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=obspm.fr header.s=mail header.b=N9zNa+or; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=obspm.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731428106; a=rsa-sha256; cv=none; b=pxXU4ZAFXYZwkA8xW+PzH6cdhjj3PjNKEAM7zlj85p6X+lI5gjdwMkF+ZUQcY9StT0d8FT DqQUX+T+7cLsJY1dcmFsNHVm00slJlTGkLV7fQiUXHpoP0DUT75gUtrXvTUpkzC8km+5Dq +hIOWEhK5VUfSaxVY8C5f5EfBOSX9UJAJFy3fBBc276WcT+eEQ6ts1gIVZtrHh4F6luTmE Uu549eVXPJSGN0sXU6k05FPtueJlo09R9AaJZmdVeOaAhgZ1a10X79FJoBNQ0UQWXzKvJS VfPW/wXZzEjE/G4k7Qb5FOwl8iJVp7EsMces8HvCr0ONmx3Y/opjBmGfSLpqHw== 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 70ADF81DF5 for ; Tue, 12 Nov 2024 17:15:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAtXE-0008HP-DT; Tue, 12 Nov 2024 11:14:35 -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 1tAtX9-0008H0-1A for help-guix@gnu.org; Tue, 12 Nov 2024 11:14:28 -0500 Received: from mx-p1.obspm.fr ([145.238.193.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAtX6-0003YL-C4 for help-guix@gnu.org; Tue, 12 Nov 2024 11:14:26 -0500 X-AuthUser: adoussot DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=obspm.fr; s=mail; t=1731428055; bh=p0wOPWe+5ttTfLbuzHe9wNPurUcDRjF4rND84aEq550=; h=Date:To:From:Subject:From; b=N9zNa+ornSQHj+0vzlwzBeF9t/n3szdpKjTWwN7RL6YG87UXSNKByPg3KlTl048l/ goHjOP2dJKFYaRi1yGH0uI8f+g3cAWJCnOS4hXKRjKozH0AFctQ3J/wwua69e6YTko QB4BR1wlLr9xhMEU7r+jpVyYkB0+BO2ZOqweuaA41xlgqg20R3zZhSnBoiz8w6vXlA jLimXjtOZYZ2UcLBLwRnb+HdjxynN+AkGfjGcH8fuoYCFprrIhjXohnE4Ibj+9y90V UCvc25jDbqhMaJoH6HdnEf4yO77Yx+unl2/wMspdlNfOzkoy95MZP2cxZ0kB4sh8vo x9WjNtA6doz3Q== Received: from [10.153.155.220] (eduroam-obs-p.obspm.fr [145.238.207.3]) (authenticated bits=0) by mx-p1.obspm.fr (8.15.2/8.15.2/DIO Observatoire de Paris - 15/04/10) with ESMTPSA id 4ACGEFWL3197145 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 12 Nov 2024 17:14:15 +0100 Message-ID: <96ca3ac8-5954-4ecf-8be2-345dab200bb5@obspm.fr> Date: Tue, 12 Nov 2024 17:14:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: help-guix@gnu.org Content-Language: fr From: Aristide Doussot Subject: Add external data to a package X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mx-p1.obspm.fr [145.238.193.20]); Tue, 12 Nov 2024 17:14:15 +0100 (CET) X-Virus-Scanned: clamav-milter 0.103.10 at mx-p1 X-Virus-Status: Clean Received-SPF: pass client-ip=145.238.193.20; envelope-from=aristide.doussot@obspm.fr; helo=mx-p1.obspm.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam: Yes X-Migadu-Spam: Yes X-Migadu-Spam-Score: 9.58 X-Spam-Score: 9.58 X-Migadu-Queue-Id: 70ADF81DF5 X-Migadu-Scanner: mx11.migadu.com X-TUID: i+hF/IUbe6qy Hello,     I am new to Guix and want to add data from an external source to my package build. More precisely, I am trying to install the library casacore and need to add data in its subdirectory share/casacore/data. I can download these data as tar via ftp. For now, my code looks like this : " (defineWSRT_Measures (origin (method url-fetch) (uri "[...not sure I can disclose...]/WSRT_Measures.ztar") (sha256 (base32 "1d9qlcmkpsnw8wm7sidp17iwd2d771nsgjwwp568886g5f239a8k")) ) ) (define-public casacore (package (name "casacore") (version "3.5.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/casacore/casacore.git") (recursive? #t) (commit "v3.5.0"))) (file-name (git-file-name name version)) (sha256 (base32 "0zw70slc3681mnadg169avjg7d3jwn1x49xn0022207blcig8g2l")))) (inputs (listfftwf fftw openblas boost gcc-toolchain git gsl lapack gfortran-toolchain readline flex bison cfitsio wcslib python python-numpy )) (build-system cmake-build-system) (arguments (list #:configure-flags #~(list"-DHELLO_WHO=Guix""-DBUILD_DYSCO=ON") #:build-type "Release" #:tests? #f;; some test are failing due to lack of data that are downloable via ftp for now testing is disable #:parallel-build? #t;; TODO : check if it makes a difference in building time #:phases #~(modify-phases %standard-phases (add-after 'install'install-data (lambda* (#:key inputs outputs #:allow-other-keys) (let*( (out (assoc-ref outputs "out")) (data (list-ref(find-files "/gnu/store""WSRT_Measures.ztar")0)) (share-dir (string-append out "/share/casacore/data/")) ) (mkdir-p share-dir) (invoke "tar""-xzf"data "-C"share-dir) #t)))) )) (home-page "http://casacore.github.io/casacore/") (synopsis "") (description "A suite of C++ libraries for radio astronomy data processing.") (license license:gpl2+))) " And it seems to work but I am sure there are far better ways to do this than my "take the first element of an overall find-files on /gnu/store/". Can someone teach me these better ways ? Thanks, Aristide Doussot