Commit | Line | Data |
---|---|---|
bbe8d8f0 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages package-management) | |
20 | #:use-module (guix packages) | |
21 | #:use-module (guix download) | |
22 | #:use-module (guix build-system gnu) | |
23 | #:use-module ((guix licenses) #:select (gpl3+)) | |
24 | #:use-module (gnu packages guile) | |
2d195e67 | 25 | #:use-module ((gnu packages compression) #:select (bzip2 gzip)) |
bbe8d8f0 LC |
26 | #:use-module (gnu packages gnupg) |
27 | #:use-module (gnu packages sqlite) | |
28 | #:use-module (gnu packages pkg-config)) | |
29 | ||
30 | (define-public guix | |
31 | (package | |
32 | (name "guix") | |
f887601a | 33 | (version "0.4") |
bbe8d8f0 LC |
34 | (source (origin |
35 | (method url-fetch) | |
36 | (uri (string-append "ftp://alpha.gnu.org/gnu/guix/guix-" | |
37 | version ".tar.gz")) | |
38 | (sha256 | |
39 | (base32 | |
f887601a | 40 | "1mmh28ds5p8mpzm2yfvgm6z92wgknqc3dlw6r6z16s13sk386igk")))) |
bbe8d8f0 LC |
41 | (build-system gnu-build-system) |
42 | (arguments | |
43 | `(#:configure-flags (list | |
2d195e67 | 44 | "--localstatedir=/var" |
bbe8d8f0 LC |
45 | (string-append "--with-libgcrypt-prefix=" |
46 | (assoc-ref %build-inputs | |
47 | "libgcrypt"))) | |
48 | #:phases (alist-cons-before | |
49 | 'configure 'copy-bootstrap-guile | |
50 | (lambda* (#:key system inputs #:allow-other-keys) | |
51 | (define (copy arch) | |
52 | (let ((guile (assoc-ref inputs | |
53 | (string-append "boot-guile/" | |
54 | arch))) | |
55 | (target (string-append "gnu/packages/bootstrap/" | |
56 | arch "-linux/" | |
57 | "/guile-2.0.7.tar.xz"))) | |
58 | (copy-file guile target))) | |
59 | ||
60 | (copy "i686") | |
61 | (copy "x86_64") | |
62 | #t) | |
63 | %standard-phases))) | |
64 | (inputs | |
65 | (let ((boot-guile (lambda (arch hash) | |
66 | (origin | |
67 | (method url-fetch) | |
68 | (uri (string-append | |
69 | "http://alpha.gnu.org/gnu/guix/bootstrap/" | |
70 | arch "-linux" | |
71 | "/20130105/guile-2.0.7.tar.xz")) | |
72 | (sha256 hash))))) | |
73 | `(("bzip2" ,bzip2) | |
2d195e67 LC |
74 | ("gzip" ,gzip) |
75 | ||
bbe8d8f0 LC |
76 | ("sqlite" ,sqlite) |
77 | ("libgcrypt" ,libgcrypt) | |
78 | ("guile" ,guile-2.0) | |
79 | ("pkg-config" ,pkg-config) | |
80 | ||
81 | ("boot-guile/i686" | |
82 | ,(boot-guile "i686" | |
83 | (base32 | |
84 | "0z11rlyclnh9palrsk0xhgm84rmvzza0gkwvlsiazsjnqpscd9zr"))) | |
85 | ("boot-guile/x86_64" | |
86 | ,(boot-guile "x86_64" | |
87 | (base32 | |
88 | "0b5a2ngd9a7z2wnm01wc27rlwb61x854ndadxwmj8v8lrl6j2hxw")))))) | |
89 | (home-page "http://www.gnu.org/software/guix") | |
79c311b8 | 90 | (synopsis "Functional package manager for installed software packages and versions") |
bbe8d8f0 | 91 | (description |
79c311b8 LC |
92 | "GNU Guix is a functional package manager for the GNU system, and is |
93 | also a distribution thereof. It includes a virtual machine image. Besides | |
94 | the usual package management features, it also supports transactional | |
95 | upgrades and roll-backs, per-user profiles, and much more. It is based on the | |
96 | Nix package manager.") | |
bbe8d8f0 | 97 | (license gpl3+))) |
30f25b03 | 98 |