mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
xorg: update autogeneration script
* Fix shebang so that it's usable on NixOS; * Enable warnings (they were enabled with Perl flag before); * Switch from mesa to libGL.
This commit is contained in:
parent
22671aa031
commit
a798ec30f9
4 changed files with 12 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
args @ { clangStdenv, fetchurl, fetchgit, fetchpatch, stdenv, pkgconfig, intltool, freetype, fontconfig
|
||||
, libxslt, expat, libpng, zlib, perl, mesa_drivers, spice-protocol
|
||||
, libxslt, expat, libpng, zlib, perl, mesa_noglu, mesa_drivers, spice-protocol
|
||||
, dbus, libuuid, openssl, gperf, m4, libevdev, tradcpp, libinput, mcpp, makeWrapper, autoreconfHook
|
||||
, autoconf, automake, libtool, xmlto, asciidoc, flex, bison, python, mtdev, pixman, ... }: with args;
|
||||
|
||||
|
@ -1839,9 +1839,9 @@ let
|
|||
sha256 = "0z56ifw3xiq9dychv8chg1cny0hq4v3c1r9pqcybk5fp7nzw9jpq";
|
||||
};
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ fontsproto mesa libdrm udev randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ];
|
||||
buildInputs = [ fontsproto libGL libdrm udev randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ];
|
||||
meta.platforms = stdenv.lib.platforms.unix;
|
||||
}) // {inherit fontsproto mesa libdrm udev randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ;};
|
||||
}) // {inherit fontsproto libGL libdrm udev randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ;};
|
||||
|
||||
xf86videoark = (mkDerivation "xf86videoark" {
|
||||
name = "xf86-video-ark-0.7.5";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#! /usr/bin/perl -w
|
||||
#! /usr/bin/env perl
|
||||
|
||||
# Typical command to generate the list of tarballs:
|
||||
|
||||
|
@ -11,6 +11,7 @@
|
|||
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $tmpDir = "/tmp/xorg-unpack";
|
||||
|
||||
|
@ -25,7 +26,7 @@ my %pcMap;
|
|||
my %extraAttrs;
|
||||
|
||||
|
||||
my @missingPCs = ("fontconfig", "libdrm", "libXaw", "zlib", "perl", "python", "mesa", "mkfontscale", "mkfontdir", "bdftopcf", "libxslt", "openssl", "gperf", "m4");
|
||||
my @missingPCs = ("fontconfig", "libdrm", "libXaw", "zlib", "perl", "python", "mkfontscale", "mkfontdir", "bdftopcf", "libxslt", "openssl", "gperf", "m4");
|
||||
$pcMap{$_} = $_ foreach @missingPCs;
|
||||
$pcMap{"freetype2"} = "freetype";
|
||||
$pcMap{"libpng12"} = "libpng";
|
||||
|
@ -33,7 +34,7 @@ $pcMap{"libpng"} = "libpng";
|
|||
$pcMap{"dbus-1"} = "dbus";
|
||||
$pcMap{"uuid"} = "libuuid";
|
||||
$pcMap{"libudev"} = "udev";
|
||||
$pcMap{"gl"} = "mesa";
|
||||
$pcMap{"gl"} = "libGL";
|
||||
$pcMap{"\$PIXMAN"} = "pixman";
|
||||
$pcMap{"\$RENDERPROTO"} = "renderproto";
|
||||
$pcMap{"\$DRI3PROTO"} = "dri3proto";
|
||||
|
@ -230,7 +231,7 @@ print OUT "";
|
|||
print OUT <<EOF;
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
args @ { clangStdenv, fetchurl, fetchgit, fetchpatch, stdenv, pkgconfig, intltool, freetype, fontconfig
|
||||
, libxslt, expat, libpng, zlib, perl, mesa_drivers, spice-protocol
|
||||
, libxslt, expat, libpng, zlib, perl, mesa_noglu, mesa_drivers, spice-protocol
|
||||
, dbus, libuuid, openssl, gperf, m4, libevdev, tradcpp, libinput, mcpp, makeWrapper, autoreconfHook
|
||||
, autoconf, automake, libtool, xmlto, asciidoc, flex, bison, python, mtdev, pixman, ... }: with args;
|
||||
|
||||
|
|
|
@ -405,7 +405,7 @@ in
|
|||
};
|
||||
|
||||
xdriinfo = attrs: attrs // {
|
||||
buildInputs = attrs.buildInputs ++ [args.mesa];
|
||||
buildInputs = attrs.buildInputs ++ [args.libGL];
|
||||
};
|
||||
|
||||
xvinfo = attrs: attrs // {
|
||||
|
@ -465,7 +465,7 @@ in
|
|||
version = (builtins.parseDrvName attrs.name).version;
|
||||
commonBuildInputs = attrs.buildInputs ++ [ xtrans ];
|
||||
commonPropagatedBuildInputs = [
|
||||
args.zlib args.mesa args.dbus
|
||||
args.zlib args.libGL args.mesa_noglu args.dbus
|
||||
xf86bigfontproto glproto xf86driproto
|
||||
compositeproto scrnsaverproto resourceproto
|
||||
xf86dgaproto
|
||||
|
@ -494,7 +494,7 @@ in
|
|||
if (!isDarwin)
|
||||
then {
|
||||
outputs = [ "out" "dev" ];
|
||||
buildInputs = [ makeWrapper ] ++ commonBuildInputs;
|
||||
buildInputs = [ makeWrapper args.libdrm ] ++ commonBuildInputs;
|
||||
propagatedBuildInputs = [ libpciaccess args.epoxy ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [
|
||||
args.udev
|
||||
];
|
||||
|
|
|
@ -12844,12 +12844,11 @@ with pkgs;
|
|||
inherit clangStdenv fetchurl fetchgit fetchpatch stdenv intltool freetype fontconfig
|
||||
libxslt expat libpng zlib perl mesa_drivers spice-protocol libunwind
|
||||
dbus libuuid openssl gperf m4 libevdev tradcpp libinput mcpp makeWrapper autoreconfHook
|
||||
autoconf automake libtool mtdev pixman
|
||||
autoconf automake libtool mtdev pixman libGL
|
||||
cairo epoxy;
|
||||
inherit (buildPackages) pkgconfig xmlto asciidoc flex bison;
|
||||
inherit (darwin) apple_sdk cf-private libobjc;
|
||||
bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null;
|
||||
mesa = libGL;
|
||||
python = python2; # Incompatible with Python 3x
|
||||
udev = if stdenv.isLinux then udev else null;
|
||||
libdrm = if stdenv.isLinux then libdrm else null;
|
||||
|
|
Loading…
Reference in a new issue