2010-11-15 09:52:57 +00:00
|
|
|
{ stdenv, fetchurl
|
2010-11-15 10:12:55 +00:00
|
|
|
, withGUI? false, gtk? null, pkgconfig? null, sqlite? null # compile GUI
|
2010-11-15 09:52:57 +00:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "lshw-${version}";
|
2013-12-04 01:53:50 +00:00
|
|
|
version = "02.17b";
|
2010-11-15 09:52:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-12-04 01:53:50 +00:00
|
|
|
url = http://ezix.org/software/files/lshw-B.02.17.tar.gz;
|
|
|
|
sha256 = "1728b96gyjmrp31knzips9azn6wkfdp5k5dnbil7h7hgz99w177b";
|
2010-11-15 09:52:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [] ++ stdenv.lib.optional withGUI [ gtk pkgconfig sqlite ];
|
|
|
|
|
|
|
|
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-08 03:07:53 +00:00
|
|
|
mv $out/sbin $out/bin
|
2010-11-15 09:52:57 +00:00
|
|
|
'';
|
|
|
|
|
2010-11-15 20:36:50 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-11-15 09:52:57 +00:00
|
|
|
homepage = http://ezix.org/project/wiki/HardwareLiSter;
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Provide detailed information on the hardware configuration of the machine";
|
2010-11-15 09:52:57 +00:00
|
|
|
license = licenses.gpl2;
|
2015-06-22 07:25:07 +01:00
|
|
|
maintainers = with maintainers; [ phreedom jgeerds ];
|
2010-11-15 09:52:57 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2010-11-15 20:36:50 +00:00
|
|
|
}
|