mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
ed: Modernize and fix for cross
This commit is contained in:
parent
05b3c87d9d
commit
7bdacad8b3
@ -1,4 +1,6 @@
|
|||||||
{ fetchurl, stdenv }:
|
{ stdenv, fetchurl
|
||||||
|
, buildPlatform, hostPlatform
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ed-${version}";
|
name = "ed-${version}";
|
||||||
@ -28,11 +30,12 @@ stdenv.mkDerivation rec {
|
|||||||
make: *** [check] Error 127
|
make: *** [check] Error 127
|
||||||
|
|
||||||
*/
|
*/
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !(hostPlatform.isDarwin || hostPlatform != buildPlatform);
|
||||||
|
|
||||||
crossAttrs = {
|
configureFlags = if hostPlatform == buildPlatform then null else [
|
||||||
compileFlags = [ "CC=${stdenv.cross.config}-gcc" ];
|
"--exec-prefix=${stdenv.cc.prefix}"
|
||||||
};
|
"CC=${stdenv.cc.prefix}cc"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "An implementation of the standard Unix editor";
|
description = "An implementation of the standard Unix editor";
|
||||||
|
Loading…
Reference in New Issue
Block a user