mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
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:
parent
ad19bb5ff8
commit
43ec75d470
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user