2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, xorgserver, getopt
|
2020-11-24 16:29:28 +01:00
|
|
|
, xauth, util-linux, which, fontsConf, gawk, coreutils }:
|
2012-08-07 03:14:17 +02:00
|
|
|
let
|
|
|
|
xvfb_run = fetchurl {
|
2019-06-10 18:21:26 +02:00
|
|
|
name = "xvfb-run";
|
2019-06-10 12:16:56 +02:00
|
|
|
# https://git.archlinux.org/svntogit/packages.git/?h=packages/xorg-server
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/xvfb-run?h=packages/xorg-server&id=9cb733cefa92af3fca608fb051d5251160c9bbff";
|
2019-06-10 05:11:57 +02:00
|
|
|
sha256 = "1307mz4nr8ga3qz73i8hbcdphky75rq8lrvfk2zm4kmv6pkbk611";
|
2012-08-07 03:14:17 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xvfb-run";
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2012-08-07 03:14:17 +02:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${xvfb_run} $out/bin/xvfb-run
|
|
|
|
|
|
|
|
chmod a+x $out/bin/xvfb-run
|
2018-03-16 14:28:32 +01:00
|
|
|
patchShebangs $out/bin/xvfb-run
|
2012-08-07 03:14:17 +02:00
|
|
|
wrapProgram $out/bin/xvfb-run \
|
2012-08-07 03:27:00 +02:00
|
|
|
--set FONTCONFIG_FILE "${fontsConf}" \
|
2021-01-15 10:19:50 +01:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ getopt xorgserver xauth which util-linux gawk coreutils ]}
|
2012-08-07 03:14:17 +02:00
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-08-14 11:20:00 +02:00
|
|
|
platforms = platforms.unix;
|
2018-09-11 23:51:16 +02:00
|
|
|
license = licenses.gpl2;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2012-08-07 03:14:17 +02:00
|
|
|
}
|