mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +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 = [
|
||||
"NIXOS=1" "INSTALL=install" "INSTALL_BINDIR=$(out)/sbin"
|
||||
"MANDIR=$(out)/share/man" "RUN_DIR=/dev/.mdadm"
|
||||
"STRIP="
|
||||
] ++ stdenv.lib.optionals (hostPlatform != buildPlatform) [
|
||||
"CROSS_COMPILE=${stdenv.cc.prefix}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ groff ];
|
||||
|
||||
# Attempt removing if building with gcc5 when updating
|
||||
NIX_CFLAGS_COMPILE = "-std=gnu89";
|
||||
|
||||
preConfigure = ''
|
||||
sed -e 's@/lib/udev@''${out}/lib/udev@' \
|
||||
-e 's@ -Werror @ @' \
|
||||
|
|
Loading…
Reference in a new issue