summary refs log tree commit diff
path: root/pkgs/tools/system/lshw
diff options
context:
space:
mode:
authorEvgeny Egorochkin <phreedom.stdin@gmail.com>2010-11-15 09:52:57 +0000
committerEvgeny Egorochkin <phreedom.stdin@gmail.com>2010-11-15 09:52:57 +0000
commitb9b7665edd7a96e7e9dfb9c066093f5f0ffb68fe (patch)
tree7dcd74301768491b720a58ddff66f17c89754500 /pkgs/tools/system/lshw
parent87d199330f0af60eed67d9f6ec4a9f4b2d544605 (diff)
downloadnixpkgs-b9b7665edd7a96e7e9dfb9c066093f5f0ffb68fe.tar
nixpkgs-b9b7665edd7a96e7e9dfb9c066093f5f0ffb68fe.tar.gz
nixpkgs-b9b7665edd7a96e7e9dfb9c066093f5f0ffb68fe.tar.bz2
nixpkgs-b9b7665edd7a96e7e9dfb9c066093f5f0ffb68fe.tar.lz
nixpkgs-b9b7665edd7a96e7e9dfb9c066093f5f0ffb68fe.tar.xz
nixpkgs-b9b7665edd7a96e7e9dfb9c066093f5f0ffb68fe.tar.zst
nixpkgs-b9b7665edd7a96e7e9dfb9c066093f5f0ffb68fe.zip
lshw: Packaged
svn path=/nixpkgs/trunk/; revision=24688
Diffstat (limited to 'pkgs/tools/system/lshw')
-rw-r--r--pkgs/tools/system/lshw/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/system/lshw/default.nix b/pkgs/tools/system/lshw/default.nix
new file mode 100644
index 00000000000..3c36812eae9
--- /dev/null
+++ b/pkgs/tools/system/lshw/default.nix
@@ -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;
+  };
+}
\ No newline at end of file