xorg: stop using the new nix syntax
Partial revert of 5ea8497933
.
Conflicts:
pkgs/servers/x11/xorg/default.nix
This commit is contained in:
parent
2c62a36b77
commit
86a372683a
2 changed files with 424 additions and 449 deletions
File diff suppressed because it is too large
Load diff
|
@ -230,11 +230,6 @@ args: with args;
|
||||||
|
|
||||||
let
|
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;};
|
overrides = import ./overrides.nix {inherit args xorg;};
|
||||||
|
|
||||||
xorg = rec {
|
xorg = rec {
|
||||||
|
@ -266,7 +261,7 @@ foreach my $pkg (sort (keys %pkgURLs)) {
|
||||||
$extraAttrs = "" unless defined $extraAttrs;
|
$extraAttrs = "" unless defined $extraAttrs;
|
||||||
|
|
||||||
print OUT <<EOF
|
print OUT <<EOF
|
||||||
$pkg = (mkDerivation "$pkg" {
|
$pkg = (stdenv.mkDerivation ((if overrides ? $pkg then overrides.$pkg else x: x) {
|
||||||
name = "$pkgNames{$pkg}";
|
name = "$pkgNames{$pkg}";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -274,7 +269,7 @@ foreach my $pkg (sort (keys %pkgURLs)) {
|
||||||
sha256 = "$pkgHashes{$pkg}";
|
sha256 = "$pkgHashes{$pkg}";
|
||||||
};
|
};
|
||||||
buildInputs = [pkgconfig $inputs];$extraAttrs
|
buildInputs = [pkgconfig $inputs];$extraAttrs
|
||||||
}) // {inherit $inputs;};
|
})) // {inherit $inputs;};
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue