git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commita554e128330d36c076328858a333d9ae4f5dee0b authordavlum <david.lum91@gmail.com> dateSun 7 Jun 2020, 18:06 (6 years ago) parent53780e7
1 file changed+4−3
pkgs/development/compilers/idris2/default.nix+4−3
pkgs/development/compilers/idris2/default.nix+4−3
@@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
2222 patchShebangs --build tests
2323 '';
2424
25− makeFlags = [ "PREFIX=$(out)" ];
25+ makeFlags = [ "PREFIX=$(out)" ]
26+ ++ stdenv.lib.optional stdenv.isDarwin "OS=";
2627
2728 # The name of the main executable of pkgs.chez is `scheme`
2829 buildFlags = [ "bootstrap-build" "SCHEME=scheme" ];
@@ -36,9 +37,9 @@ stdenv.mkDerivation rec {
3637
3738 meta = {
3839 description = "A purely functional programming language with first class types";
39− homepage = https://github.com/idris-lang/Idris2;
40+ homepage = "https://github.com/idris-lang/Idris2";
4041 license = stdenv.lib.licenses.bsd3;
4142 maintainers = with stdenv.lib.maintainers; [ wchresta ];
43+ inherit (chez.meta) platforms;
4244 };
4345}
44−