From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nils Gillmann Subject: rust work in progress conflicts (was: Re: LLVM: "FileCheck" is missing) Date: Fri, 25 Mar 2016 23:06:21 +0100 Message-ID: <87k2kq6wma.fsf@grrlz.net> References: <20160325184540.4e02cb2d@scratchpost.org> 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]:55452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajZvm-0007mH-Dh for guix-devel@gnu.org; Fri, 25 Mar 2016 18:10:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajZvi-0008Rj-58 for guix-devel@gnu.org; Fri, 25 Mar 2016 18:10:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:43783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajZvh-0008Ql-UR for guix-devel@gnu.org; Fri, 25 Mar 2016 18:10:06 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ajZvf-0003ha-7v for guix-devel@gnu.org; Fri, 25 Mar 2016 23:10:03 +0100 Received: from x5d83f485.dyn.telefonica.de ([93.131.244.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2016 23:10:03 +0100 Received: from niasterisk by x5d83f485.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2016 23:10:03 +0100 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 Here is my work in progress rust.scm, it is on pause until the next release of rust as mentioned before: ~/projects/guix_project/guix/gnu/packages $ cat rust.scm ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Nils Gillmann ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages rust) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system gnu) ;; #:use-module (gnu packages gcc) #:use-module (gnu packages perl) #:use-module (gnu packages libffi) #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) #:use-module (gnu packages curl) #:use-module (gnu packages python) #:use-module (gnu packages llvm)) ;;(list ;; (string-append ;; "https://github.com/rust-lang/rust/archive/" ;; version ".tar.gz") ;;gh "1m2d1dc243s7ym8fq2yag3fr5jvki0q9c39llfwgcpq1gc8jvcn8")))) (define-public rustc (package (name "rustc") (version "1.7.0") (source (origin (method url-fetch) (uri (string-append "https://static.rust-lang.org/dist/" name "-" version "-src.tar.gz")) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0fpiggrnvdmmnp6b95ik16v1h972wir9d1ydv5v8cwbvv1cn1ybd")))) (build-system gnu-build-system) (arguments `(#:phases (alist-replace 'configure (lambda* (#:key outputs #:allow-other-keys) ;; This old `configure' script doesn't support ;; variables passed as arguments. (let ((out (assoc-ref outputs "out")) (llvm (assoc-ref %build-inputs "llvm"))) (setenv "CONFIG_SHELL" (which "bash")) (zero? (system* "./configure" (string-append "--prefix=" out) (string-append "--llvm-root=" llvm))))) %standard-phases))) ;; #:configure-flags ;; (list ;; (string-append "--llvm-root=" ;; (assoc-ref %build-inputs "llvm"))))) (inputs `(("python-2" ,python-2) ("curl" ,curl) ("git" ,git) ("valgrind" ,valgrind) ("libffi" ,libffi) ("perl" ,perl) ("llvm" ,llvm))) (home-page "https://www.rust-lang.org/") (synopsis "The Rust Programming Language") (description "LOREM IPSUM BLA") (license license:gpl3+))) -- ng personal contact: http://krosos.sdf.org EDN: https://wiki.c3d2.de/EDN