Author: egorochkin
Date: Mon Nov 15 09:52:57 2010
New Revision: 24688
URL: https://svn.nixos.org/websvn/nix/?rev=24688&sc=1
Log:
lshw: Packaged
Added:
nixpkgs/trunk/pkgs/tools/system/lshw/
nixpkgs/trunk/pkgs/tools/system/lshw/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/tools/system/lshw/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/system/lshw/default.nix Mon Nov 15 09:52:57
2010 (r24688)
@@ -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
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Nov 15 09:52:52
2010 (r24687)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Nov 15 09:52:57
2010 (r24688)
@@ -814,6 +814,8 @@
lsh = callPackage ../tools/networking/lsh { };
+ lshw = callPackage ../tools/system/lshw { };
+
lxc = callPackage ../tools/system/lxc { };
lzma = xz;
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits