This commit is contained in:
Eelco Dolstra 2013-08-23 09:55:51 +02:00
parent c64a1332ec
commit 7c8518c194
6 changed files with 43 additions and 107 deletions

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
++ optional useQt4 qt4;
CMAKE_PREFIX_PATH = stdenv.lib.concatStringsSep ":" buildInputs;
configureFlags =
"--docdir=/share/doc/${name} --mandir=/share/man --system-libs"
+ stdenv.lib.optionalString useQt4 " --qt-gui";

View file

@ -45,8 +45,6 @@ stdenv.mkDerivation {
''
mkdir $dev/bin
mv $out/bin/cups-config $dev/bin/
chmod -R +w $out
'';
meta = {

View file

@ -5,12 +5,14 @@ assert stdenv.isLinux;
stdenv.mkDerivation rec {
name = "libcap-${version}";
version = "2.22";
src = fetchurl {
url = "mirror://gentoo/distfiles/${name}.tar.bz2";
sha256 = "03q50j6bg65cc501q87qh328ncav1i8qw2bjig99vxmmfx4bvsvk";
};
outputs = [ "dev" "out" ];
nativeBuildInputs = [ perl ];
propagatedBuildInputs = [ attr ];

View file

@ -128,10 +128,6 @@ stdenv.mkDerivation rec {
for i in $libudev/lib/*.la $libudev/lib/pkgconfig/*.pc; do
substituteInPlace $i --replace $out $libudev
done
# FIXME: move into stdenv
prefix="$libudev" patchELF
prefix="$libudev" stripDirs "lib" "''${stripDebugFlags:--S}"
''; # */
enableParallelBuilding = true;

View file

@ -579,7 +579,7 @@ let
buildInputs = [pkgconfig windowswmproto libX11 libXext xextproto ];
})) // {inherit windowswmproto libX11 libXext xextproto ;};
libX11 = (stdenvMulti.mkDerivation ((if overrides ? libX11 then overrides.libX11 else x: x) {
libX11 = (stdenv.mkDerivation ((if overrides ? libX11 then overrides.libX11 else x: x) {
name = "libX11-1.6.0";
builder = ./builder.sh;
src = fetchurl {
@ -600,7 +600,7 @@ let
buildInputs = [pkgconfig scrnsaverproto libX11 libXext xextproto ];
})) // {inherit scrnsaverproto libX11 libXext xextproto ;};
libXau = (stdenvMulti.mkDerivation ((if overrides ? libXau then overrides.libXau else x: x) {
libXau = (stdenv.mkDerivation ((if overrides ? libXau then overrides.libXau else x: x) {
name = "libXau-1.0.7";
builder = ./builder.sh;
src = fetchurl {
@ -621,7 +621,7 @@ let
buildInputs = [pkgconfig libX11 libXext xextproto libXmu libXpm xproto libXt ];
})) // {inherit libX11 libXext xextproto libXmu libXpm xproto libXt ;};
libXcomposite = (stdenvMulti.mkDerivation ((if overrides ? libXcomposite then overrides.libXcomposite else x: x) {
libXcomposite = (stdenv.mkDerivation ((if overrides ? libXcomposite then overrides.libXcomposite else x: x) {
name = "libXcomposite-0.4.3";
builder = ./builder.sh;
src = fetchurl {
@ -632,7 +632,7 @@ let
buildInputs = [pkgconfig compositeproto libX11 libXfixes xproto ];
})) // {inherit compositeproto libX11 libXfixes xproto ;};
libXcursor = (stdenvMulti.mkDerivation ((if overrides ? libXcursor then overrides.libXcursor else x: x) {
libXcursor = (stdenv.mkDerivation ((if overrides ? libXcursor then overrides.libXcursor else x: x) {
name = "libXcursor-1.1.14";
builder = ./builder.sh;
src = fetchurl {
@ -643,7 +643,7 @@ let
buildInputs = [pkgconfig fixesproto libX11 libXfixes xproto libXrender ];
})) // {inherit fixesproto libX11 libXfixes xproto libXrender ;};
libXdamage = (stdenvMulti.mkDerivation ((if overrides ? libXdamage then overrides.libXdamage else x: x) {
libXdamage = (stdenv.mkDerivation ((if overrides ? libXdamage then overrides.libXdamage else x: x) {
name = "libXdamage-1.1.3";
builder = ./builder.sh;
src = fetchurl {
@ -654,7 +654,7 @@ let
buildInputs = [pkgconfig damageproto fixesproto libX11 xextproto libXfixes xproto ];
})) // {inherit damageproto fixesproto libX11 xextproto libXfixes xproto ;};
libXdmcp = (stdenvMulti.mkDerivation ((if overrides ? libXdmcp then overrides.libXdmcp else x: x) {
libXdmcp = (stdenv.mkDerivation ((if overrides ? libXdmcp then overrides.libXdmcp else x: x) {
name = "libXdmcp-1.1.1";
builder = ./builder.sh;
src = fetchurl {
@ -665,7 +665,7 @@ let
buildInputs = [pkgconfig xproto ];
})) // {inherit xproto ;};
libXext = (stdenvMulti.mkDerivation ((if overrides ? libXext then overrides.libXext else x: x) {
libXext = (stdenv.mkDerivation ((if overrides ? libXext then overrides.libXext else x: x) {
name = "libXext-1.3.2";
builder = ./builder.sh;
src = fetchurl {
@ -676,7 +676,7 @@ let
buildInputs = [pkgconfig libX11 xextproto xproto ];
})) // {inherit libX11 xextproto xproto ;};
libXfixes = (stdenvMulti.mkDerivation ((if overrides ? libXfixes then overrides.libXfixes else x: x) {
libXfixes = (stdenv.mkDerivation ((if overrides ? libXfixes then overrides.libXfixes else x: x) {
name = "libXfixes-5.0.1";
builder = ./builder.sh;
src = fetchurl {
@ -697,7 +697,7 @@ let
buildInputs = [pkgconfig libfontenc fontsproto freetype xproto xtrans zlib ];
})) // {inherit libfontenc fontsproto freetype xproto xtrans zlib ;};
libXft = (stdenvMulti.mkDerivation ((if overrides ? libXft then overrides.libXft else x: x) {
libXft = (stdenv.mkDerivation ((if overrides ? libXft then overrides.libXft else x: x) {
name = "libXft-2.3.1";
builder = ./builder.sh;
src = fetchurl {
@ -708,7 +708,7 @@ let
buildInputs = [pkgconfig fontconfig freetype libX11 xproto libXrender ];
})) // {inherit fontconfig freetype libX11 xproto libXrender ;};
libXi = (stdenvMulti.mkDerivation ((if overrides ? libXi then overrides.libXi else x: x) {
libXi = (stdenv.mkDerivation ((if overrides ? libXi then overrides.libXi else x: x) {
name = "libXi-1.7.1";
builder = ./builder.sh;
src = fetchurl {
@ -719,7 +719,7 @@ let
buildInputs = [pkgconfig inputproto libX11 libXext xextproto libXfixes xproto ];
})) // {inherit inputproto libX11 libXext xextproto libXfixes xproto ;};
libXinerama = (stdenvMulti.mkDerivation ((if overrides ? libXinerama then overrides.libXinerama else x: x) {
libXinerama = (stdenv.mkDerivation ((if overrides ? libXinerama then overrides.libXinerama else x: x) {
name = "libXinerama-1.1.3";
builder = ./builder.sh;
src = fetchurl {
@ -760,7 +760,7 @@ let
buildInputs = [pkgconfig libX11 libXext xextproto xproto libXt ];
})) // {inherit libX11 libXext xextproto xproto libXt ;};
libXrandr = (stdenvMulti.mkDerivation ((if overrides ? libXrandr then overrides.libXrandr else x: x) {
libXrandr = (stdenv.mkDerivation ((if overrides ? libXrandr then overrides.libXrandr else x: x) {
name = "libXrandr-1.4.1";
builder = ./builder.sh;
src = fetchurl {
@ -771,7 +771,7 @@ let
buildInputs = [pkgconfig randrproto renderproto libX11 libXext xextproto xproto libXrender ];
})) // {inherit randrproto renderproto libX11 libXext xextproto xproto libXrender ;};
libXrender = (stdenvMulti.mkDerivation ((if overrides ? libXrender then overrides.libXrender else x: x) {
libXrender = (stdenv.mkDerivation ((if overrides ? libXrender then overrides.libXrender else x: x) {
name = "libXrender-0.9.8";
builder = ./builder.sh;
src = fetchurl {
@ -852,7 +852,7 @@ let
buildInputs = [pkgconfig libX11 libXext xextproto xf86miscproto xproto ];
})) // {inherit libX11 libXext xextproto xf86miscproto xproto ;};
libXxf86vm = (stdenvMulti.mkDerivation ((if overrides ? libXxf86vm then overrides.libXxf86vm else x: x) {
libXxf86vm = (stdenv.mkDerivation ((if overrides ? libXxf86vm then overrides.libXxf86vm else x: x) {
name = "libXxf86vm-1.1.3";
builder = ./builder.sh;
src = fetchurl {
@ -903,7 +903,7 @@ let
buildInputs = [pkgconfig ];
})) // {inherit ;};
libxcb = (stdenvMulti.mkDerivation ((if overrides ? libxcb then overrides.libxcb else x: x) {
libxcb = (stdenv.mkDerivation ((if overrides ? libxcb then overrides.libxcb else x: x) {
name = "libxcb-1.9.1";
builder = ./builder.sh;
src = fetchurl {

View file

@ -346,10 +346,6 @@ let
inherit stdenv perl cpio contents ubootChooser compressor;
};
stdenvMulti = stdenv // {
mkDerivation = import ../build-support/multiple-outputs.nix { inherit (pkgs) stdenv; };
};
makeWrapper = makeSetupHook { } ../build-support/setup-hooks/make-wrapper.sh;
makeModulesClosure = { kernel, rootModules, allowMissing ? false }:
@ -2353,7 +2349,6 @@ let
}));
gcc46_real = lowPrio (wrapGCC (callPackage ../development/compilers/gcc/4.6 {
stdenv = stdenvMulti;
inherit noSysDirs;
# bootstrapping a profiled compiler does not work in the sheevaplug:
@ -3112,7 +3107,6 @@ let
perl514 = callPackage ../development/interpreters/perl/5.14 { };
perl516 = callPackage ../development/interpreters/perl/5.16 {
stdenv = stdenvMulti;
fetchurl = fetchurlBoot;
};
@ -3564,9 +3558,7 @@ let
libtool_1_5 = callPackage ../development/tools/misc/libtool { };
libtool_2 = callPackage ../development/tools/misc/libtool/libtool2.nix {
stdenv = stdenvMulti;
};
libtool_2 = callPackage ../development/tools/misc/libtool/libtool2.nix { };
lsof = callPackage ../development/tools/misc/lsof { };
@ -3723,9 +3715,7 @@ let
aalib = callPackage ../development/libraries/aalib { };
acl = callPackage ../development/libraries/acl {
stdenv = stdenvMulti;
};
acl = callPackage ../development/libraries/acl { };
activemq = callPackage ../development/libraries/apache-activemq { };
@ -3742,9 +3732,7 @@ let
amrwb = callPackage ../development/libraries/amrwb { };
apr = callPackage ../development/libraries/apr {
stdenv = stdenvMulti;
};
apr = callPackage ../development/libraries/apr { };
aprutil = callPackage ../development/libraries/apr-util {
bdbSupport = true;
@ -3766,9 +3754,7 @@ let
attica = callPackage ../development/libraries/attica { };
attr = callPackage ../development/libraries/attr {
stdenv = stdenvMulti;
};
attr = callPackage ../development/libraries/attr { };
aqbanking = callPackage ../development/libraries/aqbanking { };
@ -4026,9 +4012,7 @@ let
freeglut = if stdenv.isDarwin then darwinX11AndOpenGL else
callPackage ../development/libraries/freeglut { };
freetype = callPackage ../development/libraries/freetype {
stdenv = stdenvMulti;
};
freetype = callPackage ../development/libraries/freetype { };
fribidi = callPackage ../development/libraries/fribidi { };
@ -4108,7 +4092,6 @@ let
}));
glibc = callPackage ../development/libraries/glibc/2.17 {
stdenv = stdenvMulti;
kernelHeaders = linuxHeaders;
installLocales = config.glibc.locales or false;
machHeaders = null;
@ -4184,9 +4167,7 @@ let
libpng = libpng12;
};
gmime = callPackage ../development/libraries/gmime {
stdenv = stdenvMulti;
};
gmime = callPackage ../development/libraries/gmime { };
gmm = callPackage ../development/libraries/gmm { };
@ -4296,25 +4277,20 @@ let
};
glib = callPackage ../development/libraries/glib {
stdenv = if stdenv.isDarwin
then overrideGCC stdenv gccApple
else stdenvMulti;
stdenv = if stdenv.isDarwin then overrideGCC stdenv gccApple else stdenv;
};
glibmm = callPackage ../development/libraries/glibmm { };
glib_networking = callPackage ../development/libraries/glib-networking {};
atk = callPackage ../development/libraries/atk {
stdenv = stdenvMulti;
};
atk = callPackage ../development/libraries/atk { };
atkmm = callPackage ../development/libraries/atkmm { };
pixman = callPackage ../development/libraries/pixman { };
cairo = callPackage ../development/libraries/cairo {
stdenv = stdenvMulti;
glSupport = config.cairo.gl or (stdenv.isLinux &&
!stdenv.isArm && !stdenv.isMips);
};
@ -4323,9 +4299,7 @@ let
cairomm = callPackage ../development/libraries/cairomm { };
pango = callPackage ../development/libraries/pango {
stdenv = stdenvMulti;
};
pango = callPackage ../development/libraries/pango { };
pangomm = callPackage ../development/libraries/pangomm/2.28.x.nix {
cairo = cairo_1_12_2;
@ -4333,12 +4307,9 @@ let
pangox_compat = callPackage ../development/libraries/pangox-compat { };
gdk_pixbuf = callPackage ../development/libraries/gdk-pixbuf {
stdenv = stdenvMulti;
};
gdk_pixbuf = callPackage ../development/libraries/gdk-pixbuf { };
gtk2 = callPackage ../development/libraries/gtk+/2.x.nix {
stdenv = stdenvMulti;
cupsSupport = config.gtk2.cups or stdenv.isLinux;
};
@ -4451,9 +4422,7 @@ let
inherit mesa SDL SDL_image SDL_mixer;
};
jasper = callPackage ../development/libraries/jasper {
stdenv = stdenvMulti;
};
jasper = callPackage ../development/libraries/jasper { };
jama = callPackage ../development/libraries/jama { };
@ -4589,7 +4558,6 @@ let
libdnet = callPackage ../development/libraries/libdnet { };
libdrm = callPackage ../development/libraries/libdrm {
inherit fetchurl stdenv pkgconfig;
inherit (xorg) libpthreadstubs;
};
@ -4724,9 +4692,7 @@ let
librem = callPackage ../development/libraries/librem {};
libsamplerate = callPackage ../development/libraries/libsamplerate {
stdenv = if stdenv.isDarwin
then overrideGCC stdenv gccApple
else stdenvMulti;
stdenv = if stdenv.isDarwin then overrideGCC stdenv gccApple else stdenv;
};
libspectre = callPackage ../development/libraries/libspectre { };
@ -4759,13 +4725,9 @@ let
libiptcdata = callPackage ../development/libraries/libiptcdata { };
libjpeg_original = callPackage ../development/libraries/libjpeg {
stdenv = stdenvMulti;
};
libjpeg_original = callPackage ../development/libraries/libjpeg { };
libjpeg_turbo = callPackage ../development/libraries/libjpeg-turbo {
stdenv = stdenvMulti;
};
libjpeg_turbo = callPackage ../development/libraries/libjpeg-turbo { };
libjpeg = if stdenv.isLinux then libjpeg_turbo else libjpeg_original; # some problems, both on FreeBSD and Darwin
@ -4840,9 +4802,7 @@ let
libofx = callPackage ../development/libraries/libofx { };
libogg = callPackage ../development/libraries/libogg {
stdenv = stdenvMulti;
};
libogg = callPackage ../development/libraries/libogg { };
liboggz = callPackage ../development/libraries/liboggz { };
@ -4895,9 +4855,7 @@ let
libsigsegv_25 = callPackage ../development/libraries/libsigsegv/2.5.nix { };
libsndfile = callPackage ../development/libraries/libsndfile {
stdenv = if stdenv.isDarwin
then overrideGCC stdenv gccApple
else stdenvMulti;
stdenv = if stdenv.isDarwin then overrideGCC stdenv gccApple else stdenv;
};
libsoup = callPackage ../development/libraries/libsoup { };
@ -4916,9 +4874,7 @@ let
libtheora = callPackage ../development/libraries/libtheora { };
libtiff = callPackage ../development/libraries/libtiff {
stdenv = stdenvMulti;
};
libtiff = callPackage ../development/libraries/libtiff { };
libtiger = callPackage ../development/libraries/libtiger { };
@ -4985,9 +4941,7 @@ let
libvterm = callPackage ../development/libraries/libvterm { };
libvorbis = callPackage ../development/libraries/libvorbis {
stdenv = stdenvMulti;
};
libvorbis = callPackage ../development/libraries/libvorbis { };
libwebp = callPackage ../development/libraries/libwebp { };
@ -5243,7 +5197,6 @@ let
openscenegraph = callPackage ../development/libraries/openscenegraph {};
openssl = callPackage ../development/libraries/openssl {
stdenv = stdenvMulti;
fetchurl = fetchurlBoot;
cryptodevHeaders = linuxPackages.cryptodev.override {
fetchurl = fetchurlBoot;
@ -5264,7 +5217,6 @@ let
};
pcre = callPackage ../development/libraries/pcre {
stdenv = stdenvMulti;
unicodeSupport = config.pcre.unicode or true;
};
@ -5479,9 +5431,7 @@ let
speech_tools = callPackage ../development/libraries/speech-tools {};
speex = callPackage ../development/libraries/speex {
stdenv = stdenvMulti;
};
speex = callPackage ../development/libraries/speex { };
sphinxbase = callPackage ../development/libraries/sphinxbase { };
@ -5952,7 +5902,6 @@ let
apacheHttpd = pkgs.apacheHttpd_2_2;
apacheHttpd_2_2 = callPackage ../servers/http/apache-httpd/2.2.nix {
stdenv = stdenvMulti;
sslSupport = true;
};
@ -6214,7 +6163,7 @@ let
xinetd = callPackage ../servers/xinetd { };
xorg = recurseIntoAttrs (import ../servers/x11/xorg/default.nix {
inherit fetchurl fetchgit stdenv stdenvMulti pkgconfig intltool freetype fontconfig
inherit fetchurl fetchgit stdenv pkgconfig intltool freetype fontconfig
libxslt expat libdrm libpng zlib perl mesa_drivers
xkeyboard_config dbus libuuid openssl gperf m4
autoconf libtool xmlto asciidoc udev flex bison python mtdev pixman;
@ -6725,9 +6674,7 @@ let
nss_ldap = callPackage ../os-specific/linux/nss_ldap { };
pam = callPackage ../os-specific/linux/pam {
stdenv = stdenvMulti;
};
pam = callPackage ../os-specific/linux/pam { };
# pam_bioapi ( see http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader )
@ -6812,9 +6759,7 @@ let
sysstat = callPackage ../os-specific/linux/sysstat { };
systemd = callPackage ../os-specific/linux/systemd {
stdenv = stdenvMulti;
};
systemd = callPackage ../os-specific/linux/systemd { };
sysvinit = callPackage ../os-specific/linux/sysvinit { };
@ -6874,12 +6819,10 @@ let
utillinux = lowPrio (callPackage ../os-specific/linux/util-linux {
ncurses = null;
perl = null;
stdenv = stdenvMulti;
});
utillinuxCurses = utillinux.override {
inherit ncurses perl;
stdenv = stdenvMulti;
};
v4l_utils = callPackage ../os-specific/linux/v4l-utils {
@ -7632,9 +7575,7 @@ let
firefoxWrapper = wrapFirefox { browser = firefoxPkgs.firefox; };
flac = callPackage ../applications/audio/flac {
stdenv = stdenvMulti;
};
flac = callPackage ../applications/audio/flac { };
flashplayer = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer-11 {
debug = config.flashplayer.debug or false;
@ -9629,7 +9570,6 @@ let
auctex = callPackage ../tools/typesetting/tex/auctex { };
cups = callPackage ../misc/cups {
stdenv = stdenvMulti;
libusb = libusb1;
};