* Get rid of the ugly `useFromStdenv' hack in all-packages.nix.
Instead, use the generic package override mechanism to use packages from earlier bootstrap phases. * Don't rely on the existence of attributes such as `stdenv.coreutils'. svn path=/nixpkgs/trunk/; revision=22991
This commit is contained in:
parent
d8ba69a16e
commit
a1e834e85a
@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
libPath =
|
libPath =
|
||||||
stdenv.lib.makeLibraryPath
|
stdenv.lib.makeLibraryPath
|
||||||
[ stdenv.glibc stdenv.gcc.gcc ffmpeg cairo pango glib libXrender gtk nspr nss fontconfig freetype alsaLib libX11 GConf libXext atk libXt expat zlib libjpeg bzip2 libpng libXScrnSaver dbus dbus_glib cups libgcrypt] ;
|
[ stdenv.gcc.libc stdenv.gcc.gcc ffmpeg cairo pango glib libXrender gtk nspr nss fontconfig freetype alsaLib libX11 GConf libXext atk libXt expat zlib libjpeg bzip2 libpng libXScrnSaver dbus dbus_glib cups libgcrypt] ;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
ensureDir $out/bin
|
ensureDir $out/bin
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, lib, iasl, dev86, libxslt, libxml2, libX11, xproto, libXext
|
{ stdenv, fetchurl, lib, iasl, dev86, libxslt, libxml2, libX11, xproto, libXext
|
||||||
, libXcursor, qt4, libIDL, SDL, hal, libcap, zlib, libpng, glib, kernel
|
, libXcursor, qt4, libIDL, SDL, hal, libcap, zlib, libpng, glib, kernel
|
||||||
, python, which, alsaLib, curl
|
, python, which, alsaLib, curl, gawk
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -72,7 +72,7 @@ stdenv.mkDerivation {
|
|||||||
sed -i -e "s|@INSTALL_PATH@|$out/virtualbox|" \
|
sed -i -e "s|@INSTALL_PATH@|$out/virtualbox|" \
|
||||||
-e "s|@QT4_PATH@|${qt4}/lib|" \
|
-e "s|@QT4_PATH@|${qt4}/lib|" \
|
||||||
-e "s|which|${which}/bin/which|" \
|
-e "s|which|${which}/bin/which|" \
|
||||||
-e "s|awk|${stdenv.gawk}/bin/awk|" \
|
-e "s|awk|${gawk}/bin/awk|" \
|
||||||
$out/bin/VBox.sh
|
$out/bin/VBox.sh
|
||||||
chmod 755 $out/bin/VBox.sh
|
chmod 755 $out/bin/VBox.sh
|
||||||
for file in VirtualBox VBoxManage VBoxSDL
|
for file in VirtualBox VBoxManage VBoxSDL
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchhg, bison, glibc, ed, which, bash, makeWrapper, perl, ...}:
|
{ stdenv, fetchhg, bison, glibc, ed, which, bash, coreutils, makeWrapper, perl }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2010-06-09";
|
version = "2010-06-09";
|
||||||
@ -29,8 +29,8 @@ stdenv.mkDerivation {
|
|||||||
sed -i 's,/usr/share/zoneinfo/,${glibc}/share/zoneinfo/,' src/pkg/time/zoneinfo.go
|
sed -i 's,/usr/share/zoneinfo/,${glibc}/share/zoneinfo/,' src/pkg/time/zoneinfo.go
|
||||||
sed -i 's,/bin/ed,${ed}/bin/ed,' src/cmd/6l/mkenam
|
sed -i 's,/bin/ed,${ed}/bin/ed,' src/cmd/6l/mkenam
|
||||||
|
|
||||||
sed -i -e 's,/bin/cat,${stdenv.coreutils}/bin/cat,' \
|
sed -i -e 's,/bin/cat,${coreutils}/bin/cat,' \
|
||||||
-e 's,/bin/echo,${stdenv.coreutils}/bin/echo,' \
|
-e 's,/bin/echo,${coreutils}/bin/echo,' \
|
||||||
src/pkg/exec/exec_test.go
|
src/pkg/exec/exec_test.go
|
||||||
|
|
||||||
# Disabling the 'os/http/net' tests (they want files not available in
|
# Disabling the 'os/http/net' tests (they want files not available in
|
||||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i s,/usr/bin/ld,$(type -P ld), src/driver/phases.c
|
sed -i s,/usr/bin/ld,$(type -P ld), src/driver/phases.c
|
||||||
sed -i s,/lib64/ld-linux-x86-64.so.2,${stdenv.glibc}/lib/ld-linux-x86-64.so.2, src/include/main_defs.h.in
|
sed -i s,/lib64/ld-linux-x86-64.so.2,${stdenv.gcc.libc}/lib/ld-linux-x86-64.so.2, src/include/main_defs.h.in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cmakeFlags = ''
|
cmakeFlags = ''
|
||||||
@ -22,7 +22,7 @@ stdenv.mkDerivation {
|
|||||||
-DPATH64_ENABLE_PSCRUNTIME=OFF
|
-DPATH64_ENABLE_PSCRUNTIME=OFF
|
||||||
-DPATH64_ENABLE_PROFILING=OFF -DPATH64_ENABLE_TARGETS=x8664
|
-DPATH64_ENABLE_PROFILING=OFF -DPATH64_ENABLE_TARGETS=x8664
|
||||||
-DCMAKE_BUILD_TYPE=Debug -DPATH64_ENABLE_FORTRAN=OFF
|
-DCMAKE_BUILD_TYPE=Debug -DPATH64_ENABLE_FORTRAN=OFF
|
||||||
-DPSC_CRT_PATH=${stdenv.glibc}/lib
|
-DPSC_CRT_PATH=${stdenv.gcc.libc}/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = "-j4";
|
makeFlags = "-j4";
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
{stdenv, fetchurl, db4, glibc, openssl, cyrus_sasl}:
|
{ stdenv, fetchurl, db4, glibc, openssl, cyrus_sasl
|
||||||
|
, coreutils, findutils, gnused, gnugrep
|
||||||
|
}:
|
||||||
|
|
||||||
assert stdenv.isLinux && stdenv ? coreutils;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "postfix-2.2.11";
|
name = "postfix-2.2.11";
|
||||||
@ -24,8 +26,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
mkdir $out/share/postfix/conf
|
mkdir $out/share/postfix/conf
|
||||||
cp conf/* $out/share/postfix/conf
|
cp conf/* $out/share/postfix/conf
|
||||||
sed -e 's@PATH=.*@PATH=${stdenv.coreutils}/bin:${stdenv.findutils}/bin:${stdenv.gnused}/bin:${stdenv.gnugrep}/bin:$out/sbin@' -i $out/share/postfix/conf/post-install
|
sed -e 's@PATH=.*@PATH=${coreutils}/bin:${findutils}/bin:${gnused}/bin:${gnugrep}/bin:$out/sbin@' -i $out/share/postfix/conf/post-install
|
||||||
sed -e '2aPATH=${stdenv.coreutils}/bin:${stdenv.findutils}/bin:${stdenv.gnused}/bin:${stdenv.gnugrep}/bin:$out/sbin' -i $out/share/postfix/conf/postfix-script
|
sed -e '2aPATH=${coreutils}/bin:${findutils}/bin:${gnused}/bin:${gnugrep}/bin:$out/sbin' -i $out/share/postfix/conf/postfix-script
|
||||||
chmod a+x $out/share/postfix/conf/{postfix-script,post-install}
|
chmod a+x $out/share/postfix/conf/{postfix-script,post-install}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ stdenv, fetchurl, libxml2, openssl, readline, gawk }:
|
{ stdenv, fetchurl, libxml2, openssl, readline, gawk }:
|
||||||
|
|
||||||
assert stdenv ? gawk || gawk != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "virtuoso-opensource-6.1.1";
|
name = "virtuoso-opensource-6.1.1";
|
||||||
|
|
||||||
@ -10,8 +8,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1sd70j9i26ml16lig9r9lmrdf5q0kybq71r6vzzzc5v5jxjz0l7w";
|
sha256 = "1sd70j9i26ml16lig9r9lmrdf5q0kybq71r6vzzzc5v5jxjz0l7w";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libxml2 openssl readline ]
|
buildInputs = [ libxml2 openssl readline gawk ];
|
||||||
++ stdenv.lib.optional (! stdenv ? gawk) gawk;
|
|
||||||
|
|
||||||
CPP="${stdenv.gcc}/bin/gcc -E";
|
CPP="${stdenv.gcc}/bin/gcc -E";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ system, name, preHook ? null, postHook ? null, initialPath, gcc, shell
|
{ system, name, preHook ? null, postHook ? null, initialPath, gcc, shell
|
||||||
, param1 ? "", param2 ? "", param3 ? "", param4 ? "", param5 ? ""
|
, param1 ? "", param2 ? "", param3 ? "", param4 ? "", param5 ? ""
|
||||||
, extraAttrs ? {}
|
, extraAttrs ? {}, overrides ? {}
|
||||||
|
|
||||||
, # The `fetchurl' to use for downloading curl and its dependencies
|
, # The `fetchurl' to use for downloading curl and its dependencies
|
||||||
# (see all-packages.nix).
|
# (see all-packages.nix).
|
||||||
@ -118,6 +118,7 @@ let
|
|||||||
|
|
||||||
inherit fetchurlBoot;
|
inherit fetchurlBoot;
|
||||||
|
|
||||||
|
inherit overrides;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Propagate any extra attributes. For instance, we use this to
|
# Propagate any extra attributes. For instance, we use this to
|
||||||
|
@ -73,7 +73,7 @@ rec {
|
|||||||
# This function builds the various standard environments used during
|
# This function builds the various standard environments used during
|
||||||
# the bootstrap.
|
# the bootstrap.
|
||||||
stdenvBootFun =
|
stdenvBootFun =
|
||||||
{gcc, extraAttrs ? {}, extraPath ? [], fetchurl}:
|
{gcc, extraAttrs ? {}, overrides ? {}, extraPath ? [], fetchurl}:
|
||||||
|
|
||||||
import ../generic {
|
import ../generic {
|
||||||
inherit system;
|
inherit system;
|
||||||
@ -89,8 +89,10 @@ rec {
|
|||||||
shell = "${bootstrapTools}/bin/sh";
|
shell = "${bootstrapTools}/bin/sh";
|
||||||
initialPath = [bootstrapTools] ++ extraPath;
|
initialPath = [bootstrapTools] ++ extraPath;
|
||||||
fetchurlBoot = fetchurl;
|
fetchurlBoot = fetchurl;
|
||||||
inherit gcc;
|
inherit gcc extraAttrs;
|
||||||
extraAttrs = extraAttrs // {inherit fetchurl;};
|
overrides = overrides // {
|
||||||
|
inherit fetchurl;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Build a dummy stdenv with no GCC or working fetchurl. This is
|
# Build a dummy stdenv with no GCC or working fetchurl. This is
|
||||||
@ -168,7 +170,7 @@ rec {
|
|||||||
coreutils = bootstrapTools;
|
coreutils = bootstrapTools;
|
||||||
libc = stdenvLinuxGlibc;
|
libc = stdenvLinuxGlibc;
|
||||||
};
|
};
|
||||||
extraAttrs = {
|
overrides = {
|
||||||
glibc = stdenvLinuxGlibc;
|
glibc = stdenvLinuxGlibc;
|
||||||
inherit (stdenvLinuxBoot1Pkgs) perl;
|
inherit (stdenvLinuxBoot1Pkgs) perl;
|
||||||
};
|
};
|
||||||
@ -195,7 +197,7 @@ rec {
|
|||||||
gcc = stdenvLinuxBoot2Pkgs.gcc.gcc;
|
gcc = stdenvLinuxBoot2Pkgs.gcc.gcc;
|
||||||
name = "";
|
name = "";
|
||||||
};
|
};
|
||||||
extraAttrs = {
|
overrides = {
|
||||||
inherit (stdenvLinuxBoot1Pkgs) perl;
|
inherit (stdenvLinuxBoot1Pkgs) perl;
|
||||||
};
|
};
|
||||||
inherit fetchurl;
|
inherit fetchurl;
|
||||||
@ -215,7 +217,7 @@ rec {
|
|||||||
#
|
#
|
||||||
# When updating stdenvLinux, make sure that the result has no
|
# When updating stdenvLinux, make sure that the result has no
|
||||||
# dependency (`nix-store -qR') on bootstrapTools.
|
# dependency (`nix-store -qR') on bootstrapTools.
|
||||||
stdenvLinux = import ../generic {
|
stdenvLinux = import ../generic rec {
|
||||||
name = "stdenv-linux";
|
name = "stdenv-linux";
|
||||||
|
|
||||||
inherit system;
|
inherit system;
|
||||||
@ -240,10 +242,15 @@ rec {
|
|||||||
fetchurlBoot = fetchurl;
|
fetchurlBoot = fetchurl;
|
||||||
|
|
||||||
extraAttrs = {
|
extraAttrs = {
|
||||||
inherit (stdenvLinuxBoot2Pkgs) binutils /* gcc */ glibc;
|
inherit (stdenvLinuxBoot2Pkgs) glibc;
|
||||||
|
};
|
||||||
|
|
||||||
|
overrides = {
|
||||||
|
inherit gcc;
|
||||||
|
inherit (stdenvLinuxBoot2Pkgs) binutils glibc;
|
||||||
inherit (stdenvLinuxBoot3Pkgs)
|
inherit (stdenvLinuxBoot3Pkgs)
|
||||||
gzip bzip2 bash coreutils diffutils findutils gawk
|
gzip bzip2 bash coreutils diffutils findutils gawk
|
||||||
gnumake gnused gnutar gnugrep patch patchelf
|
gnumake gnused gnutar gnugrep gnupatch patchelf
|
||||||
attr acl;
|
attr acl;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -62,7 +62,7 @@ let {
|
|||||||
body =
|
body =
|
||||||
stdenv // mkDerivationFun // {
|
stdenv // mkDerivationFun // {
|
||||||
inherit fetchurl;
|
inherit fetchurl;
|
||||||
pkgconfig = pkgconfigBin;
|
overrides.pkgconfig = pkgconfigBin;
|
||||||
};
|
};
|
||||||
|
|
||||||
shell =
|
shell =
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, nettools, iputils, iproute, makeWrapper }:
|
{ stdenv, fetchurl, nettools, iputils, iproute, makeWrapper, coreutils, gnused }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "dhcp-4.1.1-P1";
|
name = "dhcp-4.1.1-P1";
|
||||||
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace $out/sbin/dhclient-script \
|
substituteInPlace $out/sbin/dhclient-script \
|
||||||
--replace /sbin/ip ${iproute}/sbin/ip
|
--replace /sbin/ip ${iproute}/sbin/ip
|
||||||
wrapProgram "$out/sbin/dhclient-script" --prefix PATH : \
|
wrapProgram "$out/sbin/dhclient-script" --prefix PATH : \
|
||||||
"${nettools}/bin:${nettools}/sbin:${iputils}/bin:${stdenv.coreutils}/bin:${stdenv.gnused}/bin"
|
"${nettools}/bin:${nettools}/sbin:${iputils}/bin:${coreutils}/bin:${gnused}/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preConfigure =
|
preConfigure =
|
||||||
|
@ -93,10 +93,11 @@ let
|
|||||||
# (un-overriden) set of packages, allowing packageOverrides
|
# (un-overriden) set of packages, allowing packageOverrides
|
||||||
# attributes to refer to the original attributes (e.g. "foo =
|
# attributes to refer to the original attributes (e.g. "foo =
|
||||||
# ... pkgs.foo ...").
|
# ... pkgs.foo ...").
|
||||||
__overrides = (getConfig ["packageOverrides"] (pkgs: {})) pkgsOrig;
|
overrides = (getConfig ["packageOverrides"] (pkgs: {})) pkgsOrig //
|
||||||
|
(if pkgsOrig.stdenv ? overrides then pkgsOrig.stdenv.overrides else { });
|
||||||
|
|
||||||
pkgsOrig = pkgsFun {}; # the un-overriden packages, passed to packageOverrides
|
pkgsOrig = pkgsFun {}; # the un-overriden packages, passed to packageOverrides
|
||||||
pkgs = pkgsFun __overrides; # the overriden, final packages
|
pkgs = pkgsFun overrides; # the overriden, final packages
|
||||||
|
|
||||||
|
|
||||||
# We use `callPackage' to be able to omit function arguments that
|
# We use `callPackage' to be able to omit function arguments that
|
||||||
@ -113,6 +114,7 @@ let
|
|||||||
# The package compositions. Yes, this isn't properly indented.
|
# The package compositions. Yes, this isn't properly indented.
|
||||||
pkgsFun = __overrides: with helperFunctions; helperFunctions // rec {
|
pkgsFun = __overrides: with helperFunctions; helperFunctions // rec {
|
||||||
|
|
||||||
|
|
||||||
# Override system. This is useful to build i686 packages on x86_64-linux.
|
# Override system. This is useful to build i686 packages on x86_64-linux.
|
||||||
forceSystem = system: (import ./all-packages.nix) {
|
forceSystem = system: (import ./all-packages.nix) {
|
||||||
inherit system;
|
inherit system;
|
||||||
@ -152,10 +154,6 @@ let
|
|||||||
# inside the set for derivations.
|
# inside the set for derivations.
|
||||||
recurseIntoAttrs = attrs: attrs // {recurseForDerivations = true;};
|
recurseIntoAttrs = attrs: attrs // {recurseForDerivations = true;};
|
||||||
|
|
||||||
useFromStdenv = it : alternative : if ((bootStdenv != null ||
|
|
||||||
crossSystem == null) && builtins.hasAttr it stdenv) then
|
|
||||||
(builtins.getAttr it stdenv) else alternative;
|
|
||||||
|
|
||||||
# Return the first available value in the order: pkg.val, val, or default.
|
# Return the first available value in the order: pkg.val, val, or default.
|
||||||
getPkgConfig = pkg : val : default : (getConfig [ pkg val ] (getConfig [ val ] default));
|
getPkgConfig = pkg : val : default : (getConfig [ pkg val ] (getConfig [ val ] default));
|
||||||
|
|
||||||
@ -265,15 +263,10 @@ let
|
|||||||
inherit stdenv mercurial nix;
|
inherit stdenv mercurial nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
# `fetchurl' downloads a file from the network. The `useFromStdenv'
|
# `fetchurl' downloads a file from the network.
|
||||||
# is there to allow stdenv to determine fetchurl. Used during the
|
fetchurl = import ../build-support/fetchurl {
|
||||||
# stdenv-linux bootstrap phases to prevent lots of different curls
|
inherit curl stdenv;
|
||||||
# from being built.
|
};
|
||||||
fetchurl = useFromStdenv "fetchurl"
|
|
||||||
(import ../build-support/fetchurl {
|
|
||||||
curl = curl;
|
|
||||||
stdenv = stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
# fetchurlBoot is used for curl and its dependencies in order to
|
# fetchurlBoot is used for curl and its dependencies in order to
|
||||||
# prevent a cyclic dependency (curl depends on curl.tar.bz2,
|
# prevent a cyclic dependency (curl depends on curl.tar.bz2,
|
||||||
@ -428,10 +421,7 @@ let
|
|||||||
|
|
||||||
bsdiff = callPackage ../tools/compression/bsdiff { };
|
bsdiff = callPackage ../tools/compression/bsdiff { };
|
||||||
|
|
||||||
bzip2 = useFromStdenv "bzip2"
|
bzip2 = callPackage ../tools/compression/bzip2 { };
|
||||||
(import ../tools/compression/bzip2 {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
cabextract = callPackage ../tools/archivers/cabextract { };
|
cabextract = callPackage ../tools/archivers/cabextract { };
|
||||||
|
|
||||||
@ -469,18 +459,14 @@ let
|
|||||||
|
|
||||||
convmv = callPackage ../tools/misc/convmv { };
|
convmv = callPackage ../tools/misc/convmv { };
|
||||||
|
|
||||||
coreutils_real = makeOverridable (if stdenv ? isDietLibC
|
coreutils = callPackage (if stdenv ? isDietLibC
|
||||||
then import ../tools/misc/coreutils-5
|
then ../tools/misc/coreutils-5
|
||||||
else import ../tools/misc/coreutils)
|
else ../tools/misc/coreutils)
|
||||||
{
|
{
|
||||||
inherit fetchurl stdenv acl perl gmp;
|
|
||||||
|
|
||||||
# TODO: Add ACL support for cross-Linux.
|
# TODO: Add ACL support for cross-Linux.
|
||||||
aclSupport = (crossSystem == null) && stdenv.isLinux;
|
aclSupport = crossSystem == null && stdenv.isLinux;
|
||||||
};
|
};
|
||||||
|
|
||||||
coreutils = useFromStdenv "coreutils" coreutils_real;
|
|
||||||
|
|
||||||
cpio = callPackage ../tools/archivers/cpio { };
|
cpio = callPackage ../tools/archivers/cpio { };
|
||||||
|
|
||||||
cromfs = callPackage ../tools/archivers/cromfs { };
|
cromfs = callPackage ../tools/archivers/cromfs { };
|
||||||
@ -529,10 +515,7 @@ let
|
|||||||
|
|
||||||
diffstat = callPackage ../tools/text/diffstat { };
|
diffstat = callPackage ../tools/text/diffstat { };
|
||||||
|
|
||||||
diffutils = useFromStdenv "diffutils"
|
diffutils = callPackage ../tools/text/diffutils { };
|
||||||
(import ../tools/text/diffutils {
|
|
||||||
inherit fetchurl stdenv coreutils;
|
|
||||||
});
|
|
||||||
|
|
||||||
dirmngr = callPackage ../tools/security/dirmngr { };
|
dirmngr = callPackage ../tools/security/dirmngr { };
|
||||||
|
|
||||||
@ -590,12 +573,10 @@ let
|
|||||||
|
|
||||||
file = callPackage ../tools/misc/file { };
|
file = callPackage ../tools/misc/file { };
|
||||||
|
|
||||||
findutils = useFromStdenv "findutils"
|
findutils =
|
||||||
(if stdenv.isDarwin then findutils4227 else
|
if stdenv.isDarwin
|
||||||
import ../tools/misc/findutils {
|
then findutils4227
|
||||||
inherit fetchurl stdenv coreutils;
|
else callPackage ../tools/misc/findutils { };
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
findutils4227 = callPackage ../tools/misc/findutils/4.2.27.nix { };
|
findutils4227 = callPackage ../tools/misc/findutils/4.2.27.nix { };
|
||||||
|
|
||||||
@ -611,10 +592,7 @@ let
|
|||||||
|
|
||||||
unix2dos = callPackage ../tools/text/unix2dos { };
|
unix2dos = callPackage ../tools/text/unix2dos { };
|
||||||
|
|
||||||
gawk = useFromStdenv "gawk"
|
gawk = callPackage ../tools/text/gawk { };
|
||||||
(import ../tools/text/gawk {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
gdmap = callPackage ../tools/system/gdmap {
|
gdmap = callPackage ../tools/system/gdmap {
|
||||||
inherit (gtkLibs216) gtk;
|
inherit (gtkLibs216) gtk;
|
||||||
@ -645,14 +623,9 @@ let
|
|||||||
inherit (gtkLibs) glib;
|
inherit (gtkLibs) glib;
|
||||||
};
|
};
|
||||||
|
|
||||||
gnugrep = useFromStdenv "gnugrep"
|
gnugrep = callPackage ../tools/text/gnugrep { };
|
||||||
(import ../tools/text/gnugrep {
|
|
||||||
inherit fetchurl stdenv pcre;
|
|
||||||
});
|
|
||||||
|
|
||||||
gnupatch = useFromStdenv "patch" (import ../tools/text/gnupatch {
|
gnupatch = callPackage ../tools/text/gnupatch { };
|
||||||
inherit fetchurl stdenv ed;
|
|
||||||
});
|
|
||||||
|
|
||||||
gnupg1orig = callPackage ../tools/security/gnupg1 {
|
gnupg1orig = callPackage ../tools/security/gnupg1 {
|
||||||
ideaSupport = false;
|
ideaSupport = false;
|
||||||
@ -671,17 +644,11 @@ let
|
|||||||
lua = null;
|
lua = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
gnused = useFromStdenv "gnused"
|
gnused = callPackage ../tools/text/gnused { };
|
||||||
(import ../tools/text/gnused {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
gnused_4_2 = callPackage ../tools/text/gnused/4.2.nix { };
|
gnused_4_2 = callPackage ../tools/text/gnused/4.2.nix { };
|
||||||
|
|
||||||
gnutar = useFromStdenv "gnutar"
|
gnutar = callPackage ../tools/archivers/gnutar { };
|
||||||
(import ../tools/archivers/gnutar {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
gnuvd = callPackage ../tools/misc/gnuvd { };
|
gnuvd = callPackage ../tools/misc/gnuvd { };
|
||||||
|
|
||||||
@ -731,10 +698,7 @@ let
|
|||||||
inherit openssl gmp nettools iproute;
|
inherit openssl gmp nettools iproute;
|
||||||
};
|
};
|
||||||
|
|
||||||
gzip = useFromStdenv "gzip"
|
gzip = callPackage ../tools/compression/gzip { };
|
||||||
(import ../tools/compression/gzip {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
pigz = callPackage ../tools/compression/pigz { };
|
pigz = callPackage ../tools/compression/pigz { };
|
||||||
|
|
||||||
@ -1385,14 +1349,11 @@ let
|
|||||||
### SHELLS
|
### SHELLS
|
||||||
|
|
||||||
|
|
||||||
bash = lowPrio (useFromStdenv "bash" bashReal);
|
bash = lowPrio (callPackage ../shells/bash {
|
||||||
|
|
||||||
bashReal = callPackage ../shells/bash {
|
|
||||||
texinfo = null;
|
texinfo = null;
|
||||||
};
|
});
|
||||||
|
|
||||||
bashInteractive = appendToName "interactive" (bashReal.override {
|
bashInteractive = appendToName "interactive" (callPackage ../shells/bash {
|
||||||
inherit readline texinfo;
|
|
||||||
interactive = true;
|
interactive = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1480,7 +1441,7 @@ let
|
|||||||
profiledCompiler = false;
|
profiledCompiler = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
gcc44 = useFromStdenv "gcc" gcc44_real;
|
gcc44 = gcc44_real;
|
||||||
|
|
||||||
gcc43 = lowPrio (wrapGCC (makeOverridable (import ../development/compilers/gcc-4.3) {
|
gcc43 = lowPrio (wrapGCC (makeOverridable (import ../development/compilers/gcc-4.3) {
|
||||||
inherit stdenv fetchurl texinfo gmp mpfr noSysDirs;
|
inherit stdenv fetchurl texinfo gmp mpfr noSysDirs;
|
||||||
@ -2076,8 +2037,7 @@ let
|
|||||||
fetchurl = fetchurlBoot;
|
fetchurl = fetchurlBoot;
|
||||||
};
|
};
|
||||||
|
|
||||||
perl = useFromStdenv "perl"
|
perl = if system != "i686-cygwin" then perl510 else sysPerl;
|
||||||
(if system != "i686-cygwin" then perl510 else sysPerl);
|
|
||||||
|
|
||||||
php = makeOverridable (import ../development/interpreters/php) {
|
php = makeOverridable (import ../development/interpreters/php) {
|
||||||
inherit
|
inherit
|
||||||
@ -2274,10 +2234,9 @@ let
|
|||||||
|
|
||||||
avrdude = callPackage ../development/tools/misc/avrdude { };
|
avrdude = callPackage ../development/tools/misc/avrdude { };
|
||||||
|
|
||||||
binutils = useFromStdenv "binutils"
|
binutils = callPackage ../development/tools/misc/binutils {
|
||||||
(import ../development/tools/misc/binutils {
|
inherit noSysDirs;
|
||||||
inherit fetchurl stdenv noSysDirs;
|
};
|
||||||
});
|
|
||||||
|
|
||||||
binutilsCross = forceBuildDrv (import ../development/tools/misc/binutils {
|
binutilsCross = forceBuildDrv (import ../development/tools/misc/binutils {
|
||||||
inherit stdenv fetchurl;
|
inherit stdenv fetchurl;
|
||||||
@ -2378,10 +2337,7 @@ let
|
|||||||
|
|
||||||
gnum4 = callPackage ../development/tools/misc/gnum4 { };
|
gnum4 = callPackage ../development/tools/misc/gnum4 { };
|
||||||
|
|
||||||
gnumake = useFromStdenv "gnumake"
|
gnumake = callPackage ../development/tools/build-managers/gnumake { };
|
||||||
(import ../development/tools/build-managers/gnumake {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
gnumake380 = callPackage ../development/tools/build-managers/gnumake-3.80 { };
|
gnumake380 = callPackage ../development/tools/build-managers/gnumake-3.80 { };
|
||||||
|
|
||||||
@ -2447,31 +2403,19 @@ let
|
|||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
patchelf = useFromStdenv "patchelf"
|
patchelf = callPackage ../development/tools/misc/patchelf { };
|
||||||
(import ../development/tools/misc/patchelf {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
patchelf06 = callPackage ../development/tools/misc/patchelf/0.6.nix { };
|
patchelf06 = callPackage ../development/tools/misc/patchelf/0.6.nix { };
|
||||||
|
|
||||||
pmccabe = callPackage ../development/tools/misc/pmccabe { };
|
pmccabe = callPackage ../development/tools/misc/pmccabe { };
|
||||||
|
|
||||||
/**
|
|
||||||
* pkgconfig is optionally taken from the stdenv to allow bootstrapping
|
|
||||||
* of glib and pkgconfig itself on MinGW.
|
|
||||||
*/
|
|
||||||
pkgconfigReal = useFromStdenv "pkgconfig"
|
|
||||||
(import ../development/tools/misc/pkgconfig {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
});
|
|
||||||
|
|
||||||
/* Make pkgconfig always return a buildDrv, never a proper hostDrv,
|
/* Make pkgconfig always return a buildDrv, never a proper hostDrv,
|
||||||
because most usage of pkgconfig as buildInput (inheritance of
|
because most usage of pkgconfig as buildInput (inheritance of
|
||||||
pre-cross nixpkgs) means using it using as buildNativeInput
|
pre-cross nixpkgs) means using it using as buildNativeInput
|
||||||
cross_renaming: we should make all programs use pkgconfig as
|
cross_renaming: we should make all programs use pkgconfig as
|
||||||
buildNativeInput after the renaming.
|
buildNativeInput after the renaming.
|
||||||
*/
|
*/
|
||||||
pkgconfig = forceBuildDrv pkgconfigReal;
|
pkgconfig = forceBuildDrv (callPackage ../development/tools/misc/pkgconfig { });
|
||||||
|
|
||||||
radare = callPackage ../development/tools/analysis/radare {
|
radare = callPackage ../development/tools/analysis/radare {
|
||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
@ -2549,10 +2493,7 @@ let
|
|||||||
|
|
||||||
aalib = callPackage ../development/libraries/aalib { };
|
aalib = callPackage ../development/libraries/aalib { };
|
||||||
|
|
||||||
acl = useFromStdenv "acl"
|
acl = callPackage ../development/libraries/acl { };
|
||||||
(import ../development/libraries/acl {
|
|
||||||
inherit stdenv fetchurl gettext attr libtool;
|
|
||||||
});
|
|
||||||
|
|
||||||
adns = import ../development/libraries/adns/1.4.nix {
|
adns = import ../development/libraries/adns/1.4.nix {
|
||||||
inherit stdenv fetchurl;
|
inherit stdenv fetchurl;
|
||||||
@ -2589,10 +2530,7 @@ let
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
});
|
});
|
||||||
|
|
||||||
attr = useFromStdenv "attr"
|
attr = callPackage ../development/libraries/attr { };
|
||||||
(import ../development/libraries/attr {
|
|
||||||
inherit stdenv fetchurl gettext libtool;
|
|
||||||
});
|
|
||||||
|
|
||||||
aubio = callPackage ../development/libraries/aubio { };
|
aubio = callPackage ../development/libraries/aubio { };
|
||||||
|
|
||||||
@ -2831,7 +2769,7 @@ let
|
|||||||
|
|
||||||
glfw = callPackage ../development/libraries/glfw { };
|
glfw = callPackage ../development/libraries/glfw { };
|
||||||
|
|
||||||
glibc = useFromStdenv "glibc" glibc211;
|
glibc = glibc211;
|
||||||
|
|
||||||
glibc25 = callPackage ../development/libraries/glibc-2.5 {
|
glibc25 = callPackage ../development/libraries/glibc-2.5 {
|
||||||
kernelHeaders = linuxHeaders;
|
kernelHeaders = linuxHeaders;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user