mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
rPackages: remove Xvfb where it's not needed
This commit is contained in:
parent
621d1ab444
commit
0f9c0348af
@ -3,9 +3,9 @@
|
||||
{ R, pkgs, overrides }:
|
||||
|
||||
let
|
||||
inherit (pkgs) fetchurl stdenv lib xvfb_run utillinux;
|
||||
inherit (pkgs) fetchurl stdenv lib;
|
||||
|
||||
buildRPackage = import ./generic-builder.nix { inherit R xvfb_run utillinux ; };
|
||||
buildRPackage = pkgs.callPackage ./generic-builder.nix { inherit R; };
|
||||
|
||||
# Package template
|
||||
#
|
||||
|
@ -1,9 +1,10 @@
|
||||
{ R, xvfb_run, utillinux }:
|
||||
{ stdenv, R, xvfb_run, utillinux }:
|
||||
|
||||
{ name, buildInputs ? [], ... } @ attrs:
|
||||
|
||||
R.stdenv.mkDerivation ({
|
||||
buildInputs = buildInputs ++ [R xvfb_run utillinux];
|
||||
stdenv.mkDerivation ({
|
||||
buildInputs = buildInputs ++ [R] ++
|
||||
stdenv.lib.optionals attrs.requireX [utillinux xvfb_run];
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
Loading…
Reference in New Issue
Block a user