Merge pull request #774 from aristidb/master

Add nvidia-smi tool and fix an embarrassing bug in a previous pull request of mine
This commit is contained in:
Bjørn Forsman 2013-07-21 13:53:19 -07:00
commit 2f41fbad51
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation {
preConfigure = ''
cd tools/perf
sed -i s,/usr/include/elfutils,$elfutils/include/elfutils, Makefile
-f bash_completion && sed -i 's,^have perf,_have perf,' bash_completion
[ -f bash_completion ] && sed -i 's,^have perf,_have perf,' bash_completion
export makeFlags="DESTDIR=$out $makeFlags"
'';

View File

@ -74,7 +74,7 @@ installPhase() {
# Install the programs.
mkdir -p $out/bin
for i in nvidia-settings nvidia-xconfig; do
for i in nvidia-settings nvidia-smi nvidia-xconfig; do
cp $i $out/bin/$i
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath $out/lib:$programPath:$glPath $out/bin/$i