mdadm: Don't use stdenv.cross
This commit is contained in:
parent
a210b08d18
commit
5d83d36389
@ -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 ];
|
||||
|
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user