From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: Multiple versions of boost. Date: Sat, 19 Mar 2016 10:14:12 +0100 Message-ID: <87r3f6x21n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahCxc-0008FP-RH for guix-devel@gnu.org; Sat, 19 Mar 2016 05:14:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahCxX-00055M-TE for guix-devel@gnu.org; Sat, 19 Mar 2016 05:14:16 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahCxX-00055G-Qg for guix-devel@gnu.org; Sat, 19 Mar 2016 05:14:11 -0400 Received: from 541e9304.cm-5-7c.dynamic.ziggo.nl ([84.30.147.4]:60398 helo=roel-tp) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ahCxX-0006w9-24 for guix-devel@gnu.org; Sat, 19 Mar 2016 05:14:11 -0400 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Dear list, In my list of packages, I find older versions of Boost. Specifically, version 1.57.0 and version 1.56.0. In Guix we've got version 1.60.0. I would like to add the older versions as packages as well, and my current approach is to inherit most of the 1.60.0 package: (define boost-1.57.0 (package (inherit boost) (name "boost") (version "1.57.0") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/boost/boost_" (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version) ".tar.bz2")) (sha256 (base32 "0rs94vdmg34bwwj23fllva6mhrml2i7mvmlb11zyrk1k5818q34i")))))) Is this a workable approach? If not, how could I go about adding multiple versions? My other questions: - What is the convention with the Scheme variable name for the package? - Should I distinguish the package name in its version? Thank you for your time. Kind regards, Roel Janssen