2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, xorgserver, getopt
|
2020-11-24 20:58:05 +00:00
|
|
|
, xauth, util-linux, which, fontsConf, gawk, coreutils }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2021-05-20 23:08:51 +00:00
|
|
|
xvfb-run = fetchurl {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "xvfb-run";
|
2021-07-14 22:03:04 +00:00
|
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/9cb733cefa92af3fca608fb051d5251160c9bbff/trunk/xvfb-run";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1307mz4nr8ga3qz73i8hbcdphky75rq8lrvfk2zm4kmv6pkbk611";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xvfb-run";
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
2021-05-20 23:08:51 +00:00
|
|
|
cp ${xvfb-run} $out/bin/xvfb-run
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
chmod a+x $out/bin/xvfb-run
|
|
|
|
patchShebangs $out/bin/xvfb-run
|
|
|
|
wrapProgram $out/bin/xvfb-run \
|
|
|
|
--set FONTCONFIG_FILE "${fontsConf}" \
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ getopt xorgserver xauth which util-linux gawk coreutils ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-05-20 23:08:51 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|