x11: replace its usage by xlibsWrapper directly

Scilab note: the parameters already had pointed to nonexistent dirs
before this set of refactoring. But that config wasn't even used by
default.
This commit is contained in:
Vladimír Čunát
2015-09-15 11:13:22 +02:00
parent 47ad941fbf
commit 21e3ff658a
83 changed files with 183 additions and 187 deletions

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, nasm, SDL, zlib, libpng, ncurses, mesa, intltool, gtk, pkgconfig, libxml2, x11, libpulseaudio}:
{stdenv, fetchurl, nasm, SDL, zlib, libpng, ncurses, mesa, intltool, gtk, pkgconfig, libxml2, xlibsWrapper, libpulseaudio}:
stdenv.mkDerivation rec {
name = "snes9x-gtk-${version}";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "9f7c5d2d0fa3fe753611cf94e8879b73b8bb3c0eab97cdbcb6ab7376efa78dc3";
};
buildInputs = [ nasm SDL zlib libpng ncurses mesa intltool gtk pkgconfig libxml2 x11 libpulseaudio];
buildInputs = [ nasm SDL zlib libpng ncurses mesa intltool gtk pkgconfig libxml2 xlibsWrapper libpulseaudio];
sourceRoot = "snes9x-${version}-src/gtk";

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, pkgconfig, zlib, expat, openssl
, libjpeg, libpng, libtiff, freetype, fontconfig, lcms2, libpaper, jbig2dec
, libiconv
, x11Support ? false, x11 ? null
, x11Support ? false, xlibsWrapper ? null
, cupsSupport ? false, cups ? null
}:
assert x11Support -> x11 != null;
assert x11Support -> xlibsWrapper != null;
assert cupsSupport -> cups != null;
let
version = "9.15";
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
libjpeg libpng libtiff freetype fontconfig lcms2 libpaper jbig2dec
libiconv
]
++ stdenv.lib.optional x11Support x11
++ stdenv.lib.optional x11Support xlibsWrapper
++ stdenv.lib.optional cupsSupport cups
# [] # maybe sometimes jpeg2000 support
;

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, x11, libXext, mesa, imagemagick, libtiff, bzip2}:
{stdenv, fetchurl, pkgconfig, xlibsWrapper, libXext, mesa, imagemagick, libtiff, bzip2}:
stdenv.mkDerivation rec {
version = "0.9.1";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1aikafjqrfmv23jnrrm5d56dg6injh4l67zjdxzdapv9chw7g3cg";
};
buildInputs = [ pkgconfig mesa x11 imagemagick libtiff bzip2 ];
buildInputs = [ pkgconfig mesa xlibsWrapper imagemagick libtiff bzip2 ];
NIX_CFLAGS_COMPILE = "-I${imagemagick}/include/ImageMagick";
NIX_LDFLAGS= "-rpath ${libXext}/lib";

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, x11, imake, libXScrnSaver, scrnsaverproto}:
{stdenv, fetchurl, xlibsWrapper, imake, libXScrnSaver, scrnsaverproto}:
stdenv.mkDerivation rec
{
@@ -11,5 +11,5 @@ stdenv.mkDerivation rec
makeFlags="BINDIR=\${out}/bin MANPATH=\${out}/man";
preBuild = "xmkmf";
installTargets = "install install.man";
buildInputs = [x11 imake libXScrnSaver scrnsaverproto];
buildInputs = [xlibsWrapper imake libXScrnSaver scrnsaverproto];
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchgit, python, pkgconfig, x11, pam }:
{ stdenv, fetchgit, python, pkgconfig, xlibsWrapper, pam }:
stdenv.mkDerivation {
name = "xtrlock-pam-3.4-post-20150909";
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "fa8aeedfa2a4e1d813f8cad562bafdd4e2c5130df0a7cde7b2f956a32044e9f8";
};
buildInputs = [ python pkgconfig x11 pam ];
buildInputs = [ python pkgconfig xlibsWrapper pam ];
configurePhase = ''
substituteInPlace .config/options.py --replace /usr/include/security/pam_appl.h ${pam}/include/security/pam_appl.h