uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
64
pkgs/tools/misc/xvfb-run/default.nix
Normal file
64
pkgs/tools/misc/xvfb-run/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, xorgserver
|
||||
, getopt
|
||||
, xauth
|
||||
, util-linux
|
||||
, which
|
||||
, fontsConf
|
||||
, gawk
|
||||
, coreutils
|
||||
, installShellFiles
|
||||
, xterm
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
name = "xvfb-run";
|
||||
version = "1+g87f6705";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "archlinux";
|
||||
repo = "svntogit-packages";
|
||||
rev = "87f67054c49b32511893acd22be94c47ecd44b4a";
|
||||
sha256 = "sha256-KEg92RYgJd7naHFDKbdXEy075bt6NLcmX8VhQROHVPs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src/trunk/xvfb-run $out/bin/xvfb-run
|
||||
installManPage $src/trunk/xvfb-run.1
|
||||
|
||||
chmod a+x $out/bin/xvfb-run
|
||||
patchShebangs $out/bin/xvfb-run
|
||||
wrapProgram $out/bin/xvfb-run \
|
||||
--set FONTCONFIG_FILE "${fontsConf}" \
|
||||
--prefix PATH : ${lib.makeBinPath [ getopt xorgserver xauth which util-linux gawk coreutils ]}
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
(
|
||||
unset PATH
|
||||
echo "running xterm with xvfb-run"
|
||||
$out/bin/xvfb-run ${lib.getBin xterm}/bin/xterm -e true
|
||||
)
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convenience script to run a virtualized X-Server";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.artturin ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue