2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchurl, makeWrapper, xorgserver, getopt
|
2016-04-27 03:28:53 -07:00
|
|
|
, xauth, utillinux, which, fontsConf, gawk, coreutils }:
|
2012-08-06 18:14:17 -07:00
|
|
|
let
|
|
|
|
xvfb_run = fetchurl {
|
2019-06-10 09:21:26 -07:00
|
|
|
name = "xvfb-run";
|
2019-06-10 03:16:56 -07:00
|
|
|
# https://git.archlinux.org/svntogit/packages.git/?h=packages/xorg-server
|
2020-03-31 18:11:51 -07:00
|
|
|
url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/xvfb-run?h=packages/xorg-server&id=9cb733cefa92af3fca608fb051d5251160c9bbff";
|
2019-06-09 20:11:57 -07:00
|
|
|
sha256 = "1307mz4nr8ga3qz73i8hbcdphky75rq8lrvfk2zm4kmv6pkbk611";
|
2012-08-06 18:14:17 -07:00
|
|
|
};
|
|
|
|
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
|
2018-03-16 06:28:32 -07:00
|
|
|
patchShebangs $out/bin/xvfb-run
|
2012-08-06 18:14:17 -07:00
|
|
|
wrapProgram $out/bin/xvfb-run \
|
2012-08-06 18:27:00 -07:00
|
|
|
--set FONTCONFIG_FILE "${fontsConf}" \
|
2016-04-27 03:28:53 -07:00
|
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux gawk coreutils ]}
|
2012-08-06 18:14:17 -07:00
|
|
|
'';
|
2016-08-02 09:06:29 -07:00
|
|
|
|
2018-09-11 14:51:16 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-08-14 02:20:00 -07:00
|
|
|
platforms = platforms.unix;
|
2018-09-11 14:51:16 -07:00
|
|
|
license = licenses.gpl2;
|
2016-08-02 09:06:29 -07:00
|
|
|
};
|
2012-08-06 18:14:17 -07:00
|
|
|
}
|