Browse Source

gnu: Add Nix.

This commit is dedicated to the Nix project, without which we wouldn't
be hacking all this today.  :-)

* gnu/packages/package-management.scm (nix): New variable.
Ludovic Courtès 7 years ago
1 changed files with 43 additions and 2 deletions
  1. +43

+ 43
- 2
gnu/packages/package-management.scm View File

@ -22,7 +22,7 @@
#:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:select (gpl3+))
#:use-module ((guix licenses) #:select (gpl3+ lgpl2.1+))
#:use-module (gnu packages)
#:use-module (gnu packages guile)
#:use-module ((gnu packages compression) #:select (bzip2 gzip))
@ -32,7 +32,12 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages autotools)
#:use-module (gnu packages gettext)
#:use-module (gnu packages texinfo))
#:use-module (gnu packages texinfo)
#:use-module (gnu packages perl)
#:use-module (gnu packages curl)
#:use-module (gnu packages web)
#:use-module (gnu packages openssl)
#:use-module (gnu packages bdw-gc))
(define guix-0.7
@ -163,3 +168,39 @@ the Nix package manager.")
("texinfo" ,texinfo)
("graphviz" ,graphviz)
,@(package-native-inputs guix-0.7))))))
(define-public nix
(name "nix")
(version "1.7")
(source (origin
(method url-fetch)
(uri (string-append ""
version "/nix-" version ".tar.xz"))
(build-system gnu-build-system)
;; XXX: Should we pass '--with-store-dir=/gnu/store'? But then we'd also
;; need '--localstatedir=/var'. But then! The thing would use /var/nix
;; instead of /var/guix. So in the end, we do nothing special.
(native-inputs `(("perl" ,perl)
("pkg-config" ,pkg-config)))
(inputs `(("curl" ,curl)
("openssl" ,openssl)
("libgc" ,libgc)
("sqlite" ,sqlite)
("bzip2" ,bzip2)
("perl-www-curl" ,perl-www-curl)
("perl-dbi" ,perl-dbi)
("perl-dbd-sqlite" ,perl-dbd-sqlite)))
(home-page "")
(synopsis "The Nix package manager")
"Nix is a purely functional package manager. This means that it treats
packages like values in purely functional programming languages such as
Haskellthey are built by functions that don't have side-effects, and they
never change after they have been built. Nix stores packages in the Nix
store, usually the directory /nix/store, where each package has its own unique
(license lgpl2.1+)))