2010-11-15 01:52:57 -08:00
|
|
|
{ stdenv, fetchurl
|
2016-09-13 10:42:55 -07:00
|
|
|
, withGUI ? false, gtk2 ? null, pkgconfig? null, sqlite ? null # compile GUI
|
2010-11-15 01:52:57 -08:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "lshw-${version}";
|
2013-12-03 17:53:50 -08:00
|
|
|
version = "02.17b";
|
2010-11-15 01:52:57 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-12-03 17:53:50 -08:00
|
|
|
url = http://ezix.org/software/files/lshw-B.02.17.tar.gz;
|
|
|
|
sha256 = "1728b96gyjmrp31knzips9azn6wkfdp5k5dnbil7h7hgz99w177b";
|
2010-11-15 01:52:57 -08:00
|
|
|
};
|
|
|
|
|
2016-09-13 10:42:55 -07:00
|
|
|
buildInputs = [] ++ stdenv.lib.optional withGUI [ gtk2 pkgconfig sqlite ];
|
2010-11-15 01:52:57 -08:00
|
|
|
|
|
|
|
postBuild = if withGUI then "make gui" else "";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make DESTDIR="$out" install
|
|
|
|
${if withGUI then "make DESTDIR=$out install-gui" else ""}
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rmdir $out/usr
|
2014-11-07 19:07:53 -08:00
|
|
|
mv $out/sbin $out/bin
|
2010-11-15 01:52:57 -08:00
|
|
|
'';
|
|
|
|
|
2010-11-15 12:36:50 -08:00
|
|
|
meta = with stdenv.lib; {
|
2010-11-15 01:52:57 -08:00
|
|
|
homepage = http://ezix.org/project/wiki/HardwareLiSter;
|
2013-10-06 02:49:53 -07:00
|
|
|
description = "Provide detailed information on the hardware configuration of the machine";
|
2010-11-15 01:52:57 -08:00
|
|
|
license = licenses.gpl2;
|
2015-06-21 23:25:07 -07:00
|
|
|
maintainers = with maintainers; [ phreedom jgeerds ];
|
2010-11-15 01:52:57 -08:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2010-11-15 12:36:50 -08:00
|
|
|
}
|