nixpkgs/pkgs/tools/misc/xvfb-run/default.nix

29 lines
883 B
Nix
Raw Normal View History

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