2017-01-18 00:57:15 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, xkbcomp, xorgserver, getopt
|
2016-04-27 12:28:53 +02:00
|
|
|
, xauth, utillinux, which, fontsConf, gawk, coreutils }:
|
2012-08-07 03:14:17 +02:00
|
|
|
let
|
|
|
|
xvfb_run = fetchurl {
|
|
|
|
url = https://projects.archlinux.org/svntogit/packages.git/plain/trunk/xvfb-run?h=packages/xorg-server;
|
|
|
|
sha256 = "1f9mrhqy0l72i3674n98bqlq9a10h0rh9qfjiwvivz3hjhq5c0gz";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xvfb-run";
|
|
|
|
buildInputs = [makeWrapper];
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${xvfb_run} $out/bin/xvfb-run
|
|
|
|
|
|
|
|
chmod a+x $out/bin/xvfb-run
|
|
|
|
wrapProgram $out/bin/xvfb-run \
|
2012-08-07 03:27:00 +02:00
|
|
|
--set FONTCONFIG_FILE "${fontsConf}" \
|
2016-04-27 12:28:53 +02:00
|
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux gawk coreutils ]}
|
2012-08-07 03:14:17 +02:00
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2012-08-07 03:14:17 +02:00
|
|
|
}
|