megam: add darwin support (#209898)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Weijia Wang 2023-01-15 02:50:59 +01:00 committed by GitHub
parent fa8ae2120d
commit b40f0196f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View File

@ -12,11 +12,16 @@ stdenv.mkDerivation {
patches = [ ./ocaml-includes.patch ./ocaml-3.12.patch ];
buildInputs = [ ocaml ncurses ];
strictDeps = true;
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ocaml ];
makeFlags = [ "CAML_INCLUDES=${ocaml}/lib/ocaml/caml" ];
buildInputs = [ ncurses ];
makeFlags = [
"CAML_INCLUDES=${ocaml}/lib/ocaml/caml"
"WITHBIGARRAY=bigarray.cma"
];
# see https://bugzilla.redhat.com/show_bug.cgi?id=435559
dontStrip = true;
@ -42,6 +47,6 @@ stdenv.mkDerivation {
license = "non-commercial";
maintainers = [ ];
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
platforms = lib.platforms.unix;
};
}

View File

@ -36752,9 +36752,7 @@ with pkgs;
wxGTK = wxGTK32;
};
megam = callPackage ../applications/science/misc/megam {
inherit (ocaml-ng.ocamlPackages_4_07) ocaml;
};
megam = callPackage ../applications/science/misc/megam { };
netlogo = callPackage ../applications/science/misc/netlogo { };