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