mdadm: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:39:12 -04:00 committed by John Ericson
parent a210b08d18
commit 5d83d36389
2 changed files with 12 additions and 6 deletions

View File

@ -1,4 +1,7 @@
{ stdenv, fetchurl, groff }:
{ stdenv
, fetchurl, groff
, buildPlatform, hostPlatform
}:
assert stdenv.isLinux;
@ -19,8 +22,8 @@ stdenv.mkDerivation rec {
makeFlags = [
"NIXOS=1" "INSTALL=install" "INSTALL_BINDIR=$(out)/sbin"
"MANDIR=$(out)/share/man" "RUN_DIR=/dev/.mdadm"
] ++ stdenv.lib.optionals (stdenv ? cross) [
"CROSS_COMPILE=${stdenv.cross.config}-"
] ++ stdenv.lib.optionals (hostPlatform != buildPlatform) [
"CROSS_COMPILE=${stdenv.cc.prefix}"
];
nativeBuildInputs = [ groff ];

View File

@ -1,4 +1,7 @@
{ stdenv, fetchurl, groff }:
{ stdenv
, fetchurl, groff
, buildPlatform, hostPlatform
}:
assert stdenv.isLinux;
@ -19,8 +22,8 @@ stdenv.mkDerivation rec {
makeFlags = [
"NIXOS=1" "INSTALL=install" "INSTALL_BINDIR=$(out)/sbin"
"MANDIR=$(out)/share/man" "RUN_DIR=/dev/.mdadm"
] ++ stdenv.lib.optionals (stdenv ? cross) [
"CROSS_COMPILE=${stdenv.cross.config}-"
] ++ stdenv.lib.optionals (hostPlatform != buildPlatform) [
"CROSS_COMPILE=${stdenv.cc.prefix}"
];
nativeBuildInputs = [ groff ];