mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
mdadm4: Fix build by including change from 7d010ab5f4
And drop `-std=gnu89` while at it.
This commit is contained in:
parent
967077537b
commit
19387e3123
1 changed files with 1 additions and 3 deletions
|
@ -22,15 +22,13 @@ stdenv.mkDerivation rec {
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"NIXOS=1" "INSTALL=install" "INSTALL_BINDIR=$(out)/sbin"
|
"NIXOS=1" "INSTALL=install" "INSTALL_BINDIR=$(out)/sbin"
|
||||||
"MANDIR=$(out)/share/man" "RUN_DIR=/dev/.mdadm"
|
"MANDIR=$(out)/share/man" "RUN_DIR=/dev/.mdadm"
|
||||||
|
"STRIP="
|
||||||
] ++ stdenv.lib.optionals (hostPlatform != buildPlatform) [
|
] ++ stdenv.lib.optionals (hostPlatform != buildPlatform) [
|
||||||
"CROSS_COMPILE=${stdenv.cc.prefix}"
|
"CROSS_COMPILE=${stdenv.cc.prefix}"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ groff ];
|
nativeBuildInputs = [ groff ];
|
||||||
|
|
||||||
# Attempt removing if building with gcc5 when updating
|
|
||||||
NIX_CFLAGS_COMPILE = "-std=gnu89";
|
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -e 's@/lib/udev@''${out}/lib/udev@' \
|
sed -e 's@/lib/udev@''${out}/lib/udev@' \
|
||||||
-e 's@ -Werror @ @' \
|
-e 's@ -Werror @ @' \
|
||||||
|
|
Loading…
Reference in a new issue