Merge pull request #1561 from wizeman/u/ipmiutil

ipmiutil: Update from 2.7.3 -> 2.9.2 and simplify
This commit is contained in:
Michael Raskin 2014-01-22 12:32:18 -08:00
commit 9e42b753a7

View File

@ -1,55 +1,36 @@
x@{builderDefsPackage
, openssl
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
{ stdenv, fetchurl, openssl }:
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;
stdenv.mkDerivation rec {
baseName = "ipmiutil";
version = "2.9.2";
name = "${baseName}-${version}";
src = fetchurl {
url = "mirror://sourceforge/project/${baseName}/${name}.tar.gz";
sha256 = "1n7amk8wbx9a9gbm37nyb8v0c37qgp6hv4hn3nln80rr6g98f9n3";
};
inherit (sourceInfo) name version;
inherit buildInputs;
buildInputs = [ openssl ];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "fixMakefile" "doMakeInstall"];
fixMakefile = a .fullDepEntry ''
preBuild = ''
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;
sed -e "s@/etc@$out/etc@g" -i Makefile */Makefile */*/Makefile
sed -e "s@/var@$out/var@g" -i Makefile */Makefile */*/Makefile
'';
NIX_CFLAGS_COMPILE = "-fno-stack-protector";
meta = with stdenv.lib; {
description = "An easy-to-use IPMI server management utility";
homepage = http://ipmiutil.sourceforge.net/;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
license = licenses.bsd3;
};
passthru = {
updateInfo = {
downloadPage = "http://sourceforge.net/projects/ipmiutil/files/ipmiutil/";
};
};
}) x
}