diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-01-21 19:15:10 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-01-21 19:15:10 +0000 |
commit | 618e45c0f3a1ecef8862b584cd7a252fb3ee2d80 (patch) | |
tree | 7c774d201a54536ffa955e6b444709e2bdb12eeb /pkgs/tools/system/ipmiutil/default.nix | |
parent | 08a1b617168dd5073492bf0959459bf51f0798f1 (diff) | |
download | nixpkgs-618e45c0f3a1ecef8862b584cd7a252fb3ee2d80.tar nixpkgs-618e45c0f3a1ecef8862b584cd7a252fb3ee2d80.tar.gz nixpkgs-618e45c0f3a1ecef8862b584cd7a252fb3ee2d80.tar.bz2 nixpkgs-618e45c0f3a1ecef8862b584cd7a252fb3ee2d80.tar.lz nixpkgs-618e45c0f3a1ecef8862b584cd7a252fb3ee2d80.tar.xz nixpkgs-618e45c0f3a1ecef8862b584cd7a252fb3ee2d80.tar.zst nixpkgs-618e45c0f3a1ecef8862b584cd7a252fb3ee2d80.zip |
Adding ipmiutil
svn path=/nixpkgs/trunk/; revision=25660
Diffstat (limited to 'pkgs/tools/system/ipmiutil/default.nix')
-rw-r--r-- | pkgs/tools/system/ipmiutil/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/tools/system/ipmiutil/default.nix b/pkgs/tools/system/ipmiutil/default.nix new file mode 100644 index 00000000000..d5252116f64 --- /dev/null +++ b/pkgs/tools/system/ipmiutil/default.nix @@ -0,0 +1,55 @@ +x@{builderDefsPackage + , openssl + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="ipmiutil"; + version="2.7.3"; + name="${baseName}-${version}"; + project="${baseName}"; + url="mirror://sourceforge/project/${project}/${baseName}/${name}.tar.gz"; + hash="0z6ykz5db4ws7hpi25waf9vznwsh0vp819h5s7s8r054vxslrfpq"; + }; +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" "fixMakefile" "doMakeInstall"]; + + fixMakefile = a .fullDepEntry '' + sed -e "s@/usr@$out@g" -i Makefile */Makefile */*/Makefile + sed -e "s@/etc@$out/etc@g" -i Makefile */Makefile + sed -e "s@/var@$out/var@g" -i Makefile */Makefile + '' ["minInit" "doConfigure"]; + + meta = { + description = "IPMI utilities"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + license = a.lib.licenses.bsd3; + }; + passthru = { + updateInfo = { + downloadPage = "http://sourceforge.net/projects/ipmiutil/files/ipmiutil/"; + }; + }; +}) x + |