mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 07:34:36 +00:00
Adding ipmiutil
svn path=/nixpkgs/trunk/; revision=25660
This commit is contained in:
parent
08a1b61716
commit
618e45c0f3
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, fetchurl, libsigsegv, gettext, ncurses, readline, libX11
|
{ stdenv, fetchurl, libsigsegv, gettext, ncurses, readline, libX11
|
||||||
, libXau, libXt, pcre, zlib, libXpm, xproto, libXext, xextproto
|
, libXau, libXt, pcre, zlib, libXpm, xproto, libXext, xextproto
|
||||||
, libffi, libffcall, coreutils }:
|
, libffi, libffcall, coreutils}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
v = "2.49";
|
v = "2.49";
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
''
|
''
|
||||||
--with-readline builddir --with-dynamic-ffi
|
--with-readline builddir --with-dynamic-ffi --with-ffcall
|
||||||
--with-module=clx/new-clx --with-module=i18n --with-module=bindings/glibc
|
--with-module=clx/new-clx --with-module=i18n --with-module=bindings/glibc
|
||||||
--with-module=pcre --with-module=rawsock --with-module=readline
|
--with-module=pcre --with-module=rawsock --with-module=readline
|
||||||
--with-module=syscalls --with-module=wildcard --with-module=zlib
|
--with-module=syscalls --with-module=wildcard --with-module=zlib
|
||||||
|
|
55
pkgs/tools/system/ipmiutil/default.nix
Normal file
55
pkgs/tools/system/ipmiutil/default.nix
Normal file
|
@ -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
|
||||||
|
|
|
@ -802,6 +802,8 @@ let
|
||||||
static = false;
|
static = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ipmiutil = callPackage ../utils/system/ipmiutil {};
|
||||||
|
|
||||||
ised = callPackage ../tools/misc/ised {};
|
ised = callPackage ../tools/misc/ised {};
|
||||||
|
|
||||||
jdiskreport = callPackage ../tools/misc/jdiskreport { };
|
jdiskreport = callPackage ../tools/misc/jdiskreport { };
|
||||||
|
|
Loading…
Reference in a new issue