3
0
Fork 0
forked from mirrors/nixpkgs

xorg: stop using the new nix syntax

Partial revert of 5ea8497933.
This commit is contained in:
Vladimír Čunát 2014-08-23 16:14:37 +02:00
parent 96cec2a7bd
commit 8c8197dfb3
2 changed files with 424 additions and 434 deletions

File diff suppressed because it is too large Load diff

View file

@ -230,11 +230,6 @@ args: with args;
let
mkDerivation = name: attrs:
let newAttrs = (overrides."\${name}" or (x: x)) attrs;
stdenv = newAttrs.stdenv or args.stdenv;
in stdenv.mkDerivation (removeAttrs newAttrs [ "stdenv" ]);
overrides = import ./overrides.nix {inherit args xorg;};
xorg = rec {
@ -266,7 +261,7 @@ foreach my $pkg (sort (keys %pkgURLs)) {
$extraAttrs = "" unless defined $extraAttrs;
print OUT <<EOF
$pkg = (mkDerivation "$pkg" {
$pkg = (stdenv.mkDerivation ((if overrides ? $pkg then overrides.$pkg else x: x) {
name = "$pkgNames{$pkg}";
builder = ./builder.sh;
src = fetchurl {
@ -274,7 +269,7 @@ foreach my $pkg (sort (keys %pkgURLs)) {
sha256 = "$pkgHashes{$pkg}";
};
buildInputs = [pkgconfig $inputs];$extraAttrs
}) // {inherit $inputs;};
})) // {inherit $inputs;};
EOF
}