libf2c: mark cross as broken (#370600)

Changed files
+10
pkgs
by-name
li
libf2c
+10
pkgs/by-name/li/libf2c/package.nix
···
unzip ${src}
'';
makeFlags = [
"-f"
"makefile.u"
];
installPhase = ''
···
homepage = "http://www.netlib.org/f2c/";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}
···
unzip ${src}
'';
+
postPatch = ''
+
substituteInPlace makefile.u \
+
--replace-fail "ld" "${stdenv.cc.targetPrefix}ld"
+
'';
+
makeFlags = [
"-f"
"makefile.u"
+
"CC=${stdenv.cc.targetPrefix}cc"
];
installPhase = ''
···
homepage = "http://www.netlib.org/f2c/";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
+
# Generates arith.h at build time. Uses non-standard fpu_control.h.
+
broken =
+
(!stdenv.buildPlatform.canExecute stdenv.hostPlatform)
+
|| (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.libc != "glibc");
};
}