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