3
0
Fork 0
forked from mirrors/nixpkgs

i7z: simplify a bit

This commit is contained in:
Will Dietz 2018-09-19 14:04:48 -05:00
parent 6bb07ecbbc
commit 9219580c82

View file

@ -16,39 +16,24 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
buildPhase = '' postBuild = lib.optionalString withGui ''
runHook preBuild
make
${lib.optionalString withGui ''
cd GUI cd GUI
qmake qmake
make clean make clean
make make
cd .. cd ..
''}
runHook postBuild
''; '';
installPhase = '' makeFlags = [ "prefix=${placeholder "out"}" ];
runHook preInstall
mkdir -p $out/{bin,sbin} postInstall = lib.optionalString withGui ''
make install prefix=$out install -Dm755 GUI/i7z_GUI $out/bin/i7z-gui
${lib.optionalString withGui ''
install -Dm755 GUI/i7z_GUI $out/bin/i7z-gui
''}
mv $out/sbin/* $out/bin/
rmdir $out/sbin
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
description = "A better i7 (and now i3, i5) reporting tool for Linux"; description = "A better i7 (and now i3, i5) reporting tool for Linux";
homepage = https://github.com/ajaiantilal/i7z; homepage = https://github.com/DimitryAndric/i7z;
repositories.git = https://github.com/ajaiantilal/i7z.git; repositories.git = https://github.com/DimitryAndric/i7z.git;
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ bluescreen303 ]; maintainers = with maintainers; [ bluescreen303 ];
# broken on ARM # broken on ARM