From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH] gnu: rustc: Add LIBRARY_PATH search path. Date: Fri, 27 Jan 2017 22:02:13 +1000 Message-ID: <20170127120213.3746-2-donttrustben@gmail.com> References: <20170127120213.3746-1-donttrustben@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cX5Ek-00010h-1i for guix-devel@gnu.org; Fri, 27 Jan 2017 07:02:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cX5Eg-0006Yx-Nd for guix-devel@gnu.org; Fri, 27 Jan 2017 07:02:38 -0500 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:35600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cX5Eg-0006XQ-HE for guix-devel@gnu.org; Fri, 27 Jan 2017 07:02:34 -0500 Received: by mail-pg0-x243.google.com with SMTP id 204so24892585pge.2 for ; Fri, 27 Jan 2017 04:02:34 -0800 (PST) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id b66sm10876674pgc.20.2017.01.27.04.02.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 04:02:31 -0800 (PST) In-Reply-To: <20170127120213.3746-1-donttrustben@gmail.com> 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" To: guix-devel@gnu.org * gnu/packages/rust.scm (rustc)[native-search-paths]: New field. --- gnu/packages/rust.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index ae0453004..e1d973ac7 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Eric Le Bihan ;;; Copyright © 2016 ng0 +;;; Copyright © 2016 Ben Woodcroft ;;; ;;; This file is part of GNU Guix. ;;; @@ -272,6 +273,10 @@ rustc-bootstrap and cargo-bootstrap packages.") (wrap-program (string-append out "/bin/rustc") `("PATH" ":" prefix (,(string-append ld-wrapper "/bin"))) `("LIBRARY_PATH" ":" suffix (,(string-append libc "/lib")))))))))) + (native-search-paths + (list (search-path-specification + (variable "LIBRARY_PATH") + (files '("lib" "lib64"))))) (synopsis "Compiler for the Rust progamming language") (description "Rust is a systems programming language that provides memory safety and thread safety guarantees.") -- 2.11.0