summary refs log tree commit diff
path: root/pkgs/tools/system/freeipmi/default.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2011-01-24 07:06:17 +0000
committerMichael Raskin <7c6f434c@mail.ru>2011-01-24 07:06:17 +0000
commitf863b73829a5f666367131b579e99fd43b8585f1 (patch)
tree4291e211ccfc925809b66465e6d882a9d6d4e975 /pkgs/tools/system/freeipmi/default.nix
parent5c876d63b55387e666b0fee57805ebf4292e3f94 (diff)
downloadnixpkgs-f863b73829a5f666367131b579e99fd43b8585f1.tar
nixpkgs-f863b73829a5f666367131b579e99fd43b8585f1.tar.gz
nixpkgs-f863b73829a5f666367131b579e99fd43b8585f1.tar.bz2
nixpkgs-f863b73829a5f666367131b579e99fd43b8585f1.tar.lz
nixpkgs-f863b73829a5f666367131b579e99fd43b8585f1.tar.xz
nixpkgs-f863b73829a5f666367131b579e99fd43b8585f1.tar.zst
nixpkgs-f863b73829a5f666367131b579e99fd43b8585f1.zip
Adding FreeIPMI
svn path=/nixpkgs/trunk/; revision=25679
Diffstat (limited to 'pkgs/tools/system/freeipmi/default.nix')
-rw-r--r--pkgs/tools/system/freeipmi/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/system/freeipmi/default.nix b/pkgs/tools/system/freeipmi/default.nix
new file mode 100644
index 00000000000..7e527ab731a
--- /dev/null
+++ b/pkgs/tools/system/freeipmi/default.nix
@@ -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
+