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