root: add noSplash option

This commit is contained in:
Dmitry Kalinkin
2017-08-30 19:56:53 -04:00
committed by Dmitry Kalinkin
parent b35972b3fa
commit 7c7ca7f017
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, fetchpatch, cmake, pcre, pkgconfig, python2 { stdenv, fetchurl, fetchpatch, cmake, pcre, pkgconfig, python2
, libX11, libXpm, libXft, libXext, mesa, zlib, libxml2, lzma, gsl , libX11, libXpm, libXft, libXext, mesa, zlib, libxml2, lzma, gsl
, Cocoa, OpenGL }: , Cocoa, OpenGL, noSplash ? false }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "root-${version}"; name = "root-${version}";
@@ -28,6 +28,8 @@ stdenv.mkDerivation rec {
preConfigure = '' preConfigure = ''
patchShebangs build/unix/ patchShebangs build/unix/
'' + stdenv.lib.optionalString noSplash ''
substituteInPlace rootx/src/rootx.cxx --replace "gNoLogo = false" "gNoLogo = true"
''; '';
cmakeFlags = [ cmakeFlags = [