mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Add xvfb-run, a wrapper script for Xvfb.
This commit is contained in:
parent
679b534dd0
commit
f676f9e487
21
pkgs/tools/misc/xvfb-run/default.nix
Normal file
21
pkgs/tools/misc/xvfb-run/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ stdenv, fetchurl, makeWrapper, xkbcomp, xorgserver, getopt, xkeyboard_config}:
|
||||
let
|
||||
xvfb_run = fetchurl {
|
||||
url = https://projects.archlinux.org/svntogit/packages.git/plain/trunk/xvfb-run?h=packages/xorg-server;
|
||||
sha256 = "1f9mrhqy0l72i3674n98bqlq9a10h0rh9qfjiwvivz3hjhq5c0gz";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "xvfb-run";
|
||||
buildInputs = [makeWrapper];
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin
|
||||
cp ${xvfb_run} $out/bin/xvfb-run
|
||||
sed -i 's|XVFBARGS="|XVFBARGS="-xkbdir ${xkeyboard_config}/etc/X11/xkb |' $out/bin/xvfb-run
|
||||
|
||||
chmod a+x $out/bin/xvfb-run
|
||||
wrapProgram $out/bin/xvfb-run \
|
||||
--set XKB_BINDIR "${xkbcomp}/bin" \
|
||||
--prefix PATH : ${getopt}/bin:${xorgserver}/bin
|
||||
'';
|
||||
}
|
@ -1738,6 +1738,8 @@ let
|
||||
|
||||
xtreemfs = callPackage ../tools/filesystems/xtreemfs {};
|
||||
|
||||
xvfb_run = callPackage ../tools/misc/xvfb-run {};
|
||||
|
||||
youtubeDL = callPackage ../tools/misc/youtube-dl { };
|
||||
|
||||
zbar = callPackage ../tools/graphics/zbar {};
|
||||
|
Loading…
Reference in New Issue
Block a user