newt: Remove crossAttrs

This commit is contained in:
John Ericson 2018-07-23 15:40:19 -04:00
parent 5be14c5c74
commit aa9dba9c39

View File

@ -22,9 +22,10 @@ stdenv.mkDerivation rec {
unset CPP
'';
crossAttrs = {
makeFlags = "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
};
# Use `lib.optionalString` next mass rebuild.
makeFlags = if stdenv.buildPlatform == stdenv.hostPlatform
then null
else "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
meta = with stdenv.lib; {
homepage = https://fedorahosted.org/newt/;