1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/xvfb-run/default.nix

30 lines
979 B
Nix
Raw Normal View History

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