mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
idris2: fix build on macOS (#89548)
The idris2 Makefile tries to use different versions of sed depending on the OS, but nix always uses the same version. Because the version of sed that is expected on macOS doesn't exist in the nix environment, the build fails. Setting the OS to empty string resolves the issue.
This commit is contained in:
parent
53780e7944
commit
a554e12833
|
@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
|
|||
patchShebangs --build tests
|
||||
'';
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
makeFlags = [ "PREFIX=$(out)" ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin "OS=";
|
||||
|
||||
# The name of the main executable of pkgs.chez is `scheme`
|
||||
buildFlags = [ "bootstrap-build" "SCHEME=scheme" ];
|
||||
|
@ -36,9 +37,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
meta = {
|
||||
description = "A purely functional programming language with first class types";
|
||||
homepage = https://github.com/idris-lang/Idris2;
|
||||
homepage = "https://github.com/idris-lang/Idris2";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
maintainers = with stdenv.lib.maintainers; [ wchresta ];
|
||||
inherit (chez.meta) platforms;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue