ipmitool: cleanup expression

* remove no-op substitution of s6_addr16 -> s6_addr

This string doesn't exist anymore in that file.

* clean up configureFlags
This commit is contained in:
Florian Klink 2020-02-28 12:09:54 -08:00 committed by worldofpeace
parent ad19bb5ff8
commit 43ec75d470

View file

@ -19,19 +19,19 @@ stdenv.mkDerivation {
})
];
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace src/plugins/ipmi_intf.c --replace "s6_addr16" "s6_addr"
'';
buildInputs = [ openssl ];
preConfigure = ''
configureFlagsArray=(
--infodir=$out/share/info
--mandir=$out/share/man
${if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared"}
)
'';
configureFlags = [
"--infodir=${placeholder "out"}/share/info"
"--mandir=${placeholder "out"}/share/man"
] ++ stdenv.lib.optionals static [
"LDFLAGS=-static"
"--enable-static"
"--disable-shared"
] ++ stdenv.lib.optionals (!static) [
"--enable-shared"
];
makeFlags = stdenv.lib.optional static "AM_LDFLAGS=-all-static";
dontDisableStatic = static;