Author: raskin
Date: Mon Jan 24 07:06:17 2011
New Revision: 25679
URL: https://svn.nixos.org/websvn/nix/?rev=25679&sc=1

Log:
Adding FreeIPMI

Added:
   nixpkgs/trunk/pkgs/tools/system/freeipmi/
   nixpkgs/trunk/pkgs/tools/system/freeipmi/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/tools/system/freeipmi/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/system/freeipmi/default.nix        Mon Jan 24 
07:06:17 2011        (r25679)
@@ -0,0 +1,48 @@
+x@{builderDefsPackage
+  , libgcrypt, readline
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="freeipmi";
+    version="1.0.1";
+    name="${baseName}-${version}";
+    
url="http://download.gluster.com/pub/${baseName}/${version}/${name}.tar.gz";;
+    hash="11j0jvarxvzj89c2fg49ghz75gljdkacid6631q313kc1bd2l0ms";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["doConfigure" "doMakeInstall"];
+      
+  meta = {
+    description = "IPMI utility";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+    license = a.lib.licenses.gpl3;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://www.gnu.org/software/freeipmi/download.html";;
+    };
+  };
+}) x
+

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Jan 23 22:53:54 
2011        (r25678)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Mon Jan 24 07:06:17 
2011        (r25679)
@@ -640,6 +640,8 @@
     withX11 = true;
   };
 
+  freeipmi = callPackage ../tools/system/freeipmi {};
+
   freetalk = callPackage 
../applications/networking/instant-messengers/freetalk {};
 
   ftgl = callPackage ../development/libraries/ftgl { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to