freeipmi: enable for darwin

This commit is contained in:
Ihar Hrachyshka
2026-01-25 12:47:50 -05:00
parent ac3f47bb69
commit a5f8e948b1
+12 -1
View File
@@ -3,6 +3,7 @@
fetchurl,
lib,
stdenv,
argp-standalone,
libgcrypt,
readline,
libgpg-error,
@@ -17,12 +18,22 @@ stdenv.mkDerivation rec {
sha256 = "sha256-W872u562gOSbSjYjV5kwrOeJn1OSWyBF/p+RrWkEER0=";
};
postPatch = lib.optionalString stdenv.cc.isClang ''
substituteInPlace man/Makefile.in \
--replace-fail \
'$(CPP_FOR_BUILD) -nostdinc -w -C -P -I. -I$(top_srcdir)/man $@.pre $@' \
'$(CPP_FOR_BUILD) -nostdinc -w -C -P -I. -I$(top_srcdir)/man -o $@ $@.pre'
'';
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = [
libgcrypt
readline
libgpg-error
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
argp-standalone
];
configureFlags = [
@@ -63,6 +74,6 @@ stdenv.mkDerivation rec {
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ raskin ];
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
platforms = lib.platforms.gnu ++ lib.platforms.unix;
};
}