forked from mirrors/nixpkgs
xorg: go back to using the new nix syntax
This reverts commit 86a372683a
.
The original revert was just temporary.
Conflicts (auto-solved):
pkgs/servers/x11/xorg/default.nix
This commit is contained in:
parent
381dcb1d98
commit
4c3e6a4675
File diff suppressed because it is too large
Load diff
|
@ -230,6 +230,11 @@ 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 {
|
||||
|
@ -261,7 +266,7 @@ foreach my $pkg (sort (keys %pkgURLs)) {
|
|||
$extraAttrs = "" unless defined $extraAttrs;
|
||||
|
||||
print OUT <<EOF
|
||||
$pkg = (stdenv.mkDerivation ((if overrides ? $pkg then overrides.$pkg else x: x) {
|
||||
$pkg = (mkDerivation "$pkg" {
|
||||
name = "$pkgNames{$pkg}";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
|
@ -269,7 +274,7 @@ foreach my $pkg (sort (keys %pkgURLs)) {
|
|||
sha256 = "$pkgHashes{$pkg}";
|
||||
};
|
||||
buildInputs = [pkgconfig $inputs];$extraAttrs
|
||||
})) // {inherit $inputs;};
|
||||
}) // {inherit $inputs;};
|
||||
|
||||
EOF
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue