From 7c7ca7f017ed601c50d98db2f6238914b34b58d0 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Wed, 30 Aug 2017 09:04:45 -0700 Subject: [PATCH] root: add noSplash option --- pkgs/applications/science/misc/root/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/misc/root/default.nix b/pkgs/applications/science/misc/root/default.nix index 86e074dbe5d4..b220bb8a80ce 100644 --- a/pkgs/applications/science/misc/root/default.nix +++ b/pkgs/applications/science/misc/root/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, fetchpatch, cmake, pcre, pkgconfig, python2 , libX11, libXpm, libXft, libXext, mesa, zlib, libxml2, lzma, gsl -, Cocoa, OpenGL }: +, Cocoa, OpenGL, noSplash ? false }: stdenv.mkDerivation rec { name = "root-${version}"; @@ -28,6 +28,8 @@ stdenv.mkDerivation rec { preConfigure = '' patchShebangs build/unix/ + '' + stdenv.lib.optionalString noSplash '' + substituteInPlace rootx/src/rootx.cxx --replace "gNoLogo = false" "gNoLogo = true" ''; cmakeFlags = [