diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-01-24 07:06:17 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-01-24 07:06:17 +0000 |
commit | f863b73829a5f666367131b579e99fd43b8585f1 (patch) | |
tree | 4291e211ccfc925809b66465e6d882a9d6d4e975 /pkgs/tools/system/freeipmi/default.nix | |
parent | 5c876d63b55387e666b0fee57805ebf4292e3f94 (diff) |
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.nix | 48 |
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 0000000000000..7e527ab731a63 --- /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 + |