3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/guix/default.nix

70 lines
2.1 KiB
Nix
Raw Normal View History

2013-07-03 14:33:02 +01:00
{ fetchurl, stdenv, guile, libgcrypt, sqlite, bzip2, pkgconfig }:
let
# Getting the bootstrap Guile binary. This is normally performed by Guix's build system.
base_url = arch:
"http://alpha.gnu.org/gnu/guix/bootstrap/${arch}-linux/20130105/guile-2.0.7.tar.xz";
boot_guile = {
i686 = fetchurl {
url = base_url "i686";
sha256 = "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c";
};
x86_64 = fetchurl {
url = base_url "x86_64";
sha256 = "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c";
};
};
in stdenv.mkDerivation rec {
2013-07-19 22:21:34 +01:00
name = "guix-0.3";
2013-07-03 14:33:02 +01:00
src = fetchurl {
url = "ftp://alpha.gnu.org/gnu/guix/${name}.tar.gz";
2013-07-19 22:21:34 +01:00
sha256 = "0xpfdmlfkkpmgrb8lpaqs5wxx31m4jslajs6b9waz5wp91zk7fix";
2013-07-03 14:33:02 +01:00
};
configureFlags =
[ "--localstatedir=/nix/var"
"--with-libgcrypt-prefix=${libgcrypt}"
];
preBuild =
# Copy the bootstrap Guile tarballs like Guix's makefile normally does.
'' cp -v "${boot_guile.i686}" gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
cp -v "${boot_guile.x86_64}" gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ guile libgcrypt sqlite bzip2 ];
doCheck = true;
enableParallelBuilding = true;
meta = {
description = "Functional package manager with a Scheme interface";
longDescription = ''
GNU Guix is a purely functional package manager for the GNU system, and a distribution thereof.
In addition to standard package management features, Guix supports
transactional upgrades and roll-backs, unprivileged package management,
2013-07-19 22:21:34 +01:00
per-user profiles, and garbage collection.
2013-07-03 14:33:02 +01:00
It provides Guile Scheme APIs, including high-level embedded
domain-specific languages (EDSLs), to describe how packages are built
and composed.
A user-land free software distribution for GNU/Linux comes as part of
Guix.
Guix is based on the Nix package manager.
'';
license = stdenv.lib.licenses.gpl3Plus;
2013-07-03 14:33:02 +01:00
2015-01-13 21:33:24 +00:00
maintainers = [ ];
2013-07-19 22:21:34 +01:00
platforms = stdenv.lib.platforms.linux;
2013-07-03 14:33:02 +01:00
homepage = http://www.gnu.org/software/guix;
};
}