You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
4.2 KiB

  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. (define-module (gnu packages package-management)
  19. #:use-module (guix packages)
  20. #:use-module (guix download)
  21. #:use-module (guix build-system gnu)
  22. #:use-module ((guix licenses) #:select (gpl3+))
  23. #:use-module (gnu packages guile)
  24. #:use-module ((gnu packages compression) #:select (bzip2 gzip))
  25. #:use-module (gnu packages gnupg)
  26. #:use-module (gnu packages sqlite)
  27. #:use-module (gnu packages pkg-config))
  28. (define-public guix
  29. (package
  30. (name "guix")
  31. (version "0.4")
  32. (source (origin
  33. (method url-fetch)
  34. (uri (string-append "ftp://alpha.gnu.org/gnu/guix/guix-"
  35. version ".tar.gz"))
  36. (sha256
  37. (base32
  38. "1mmh28ds5p8mpzm2yfvgm6z92wgknqc3dlw6r6z16s13sk386igk"))))
  39. (build-system gnu-build-system)
  40. (arguments
  41. `(#:configure-flags (list
  42. "--localstatedir=/var"
  43. (string-append "--with-libgcrypt-prefix="
  44. (assoc-ref %build-inputs
  45. "libgcrypt")))
  46. #:phases (alist-cons-before
  47. 'configure 'copy-bootstrap-guile
  48. (lambda* (#:key system inputs #:allow-other-keys)
  49. (define (copy arch)
  50. (let ((guile (assoc-ref inputs
  51. (string-append "boot-guile/"
  52. arch)))
  53. (target (string-append "gnu/packages/bootstrap/"
  54. arch "-linux/"
  55. "/guile-2.0.7.tar.xz")))
  56. (copy-file guile target)))
  57. (copy "i686")
  58. (copy "x86_64")
  59. #t)
  60. %standard-phases)))
  61. (inputs
  62. (let ((boot-guile (lambda (arch hash)
  63. (origin
  64. (method url-fetch)
  65. (uri (string-append
  66. "http://alpha.gnu.org/gnu/guix/bootstrap/"
  67. arch "-linux"
  68. "/20130105/guile-2.0.7.tar.xz"))
  69. (sha256 hash)))))
  70. `(("bzip2" ,bzip2)
  71. ("gzip" ,gzip)
  72. ("sqlite" ,sqlite)
  73. ("libgcrypt" ,libgcrypt)
  74. ("guile" ,guile-2.0)
  75. ("pkg-config" ,pkg-config)
  76. ("boot-guile/i686"
  77. ,(boot-guile "i686"
  78. (base32
  79. "0z11rlyclnh9palrsk0xhgm84rmvzza0gkwvlsiazsjnqpscd9zr")))
  80. ("boot-guile/x86_64"
  81. ,(boot-guile "x86_64"
  82. (base32
  83. "0b5a2ngd9a7z2wnm01wc27rlwb61x854ndadxwmj8v8lrl6j2hxw"))))))
  84. (home-page "http://www.gnu.org/software/guix")
  85. (synopsis "Managing installed software packages and versions")
  86. (description
  87. "GNU Guix is a purely functional package manager for the GNU system,
  88. and a distribution thereof.
  89. In addition to standard package management features, Guix supports
  90. transactional upgrades and roll-backs, unprivileged package management,
  91. per-user profiles, and garbage collection.
  92. It provides Guile Scheme APIs, including high-level embedded domain-specific
  93. languages (EDSLs), to describe how packages are built and composed.
  94. A user-land free software distribution for GNU/Linux comes as part of Guix.
  95. Guix is based on the Nix package manager.")
  96. (license gpl3+)))