forked from mirrors/nixpkgs
lshw: Packaged
svn path=/nixpkgs/trunk/; revision=24688
This commit is contained in:
parent
87d199330f
commit
b9b7665edd
32
pkgs/tools/system/lshw/default.nix
Normal file
32
pkgs/tools/system/lshw/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, fetchurl
|
||||
, withGUI? true, gtk? null, pkgconfig? null, sqlite? null # compile GUI
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "lshw-${version}";
|
||||
version = "02.15b";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://ezix.org/software/files/lshw-B.02.15.tar.gz;
|
||||
sha256 = "19im6yj1pmsbrwkvdmgshllhiw7jh6nzhr6dc777q1n99g3cw0gv";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with stdenv.libs; {
|
||||
homepage = http://ezix.org/project/wiki/HardwareLiSter;
|
||||
description = "A small tool to provide detailed information on the hardware configuration of the machine.";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.phreedom ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -814,6 +814,8 @@ let
|
|||
|
||||
lsh = callPackage ../tools/networking/lsh { };
|
||||
|
||||
lshw = callPackage ../tools/system/lshw { };
|
||||
|
||||
lxc = callPackage ../tools/system/lxc { };
|
||||
|
||||
lzma = xz;
|
||||
|
|
Loading…
Reference in a new issue