8 stdenv.mkDerivation (finalAttrs: {
9 pname = "m2-mesoplanet";
12 src = fetchFromGitHub {
14 repo = "M2-Mesoplanet";
15 rev = "Release_${finalAttrs.version}";
16 hash = "sha256-hE7xvX84q3tk0XakveYDJhrhfBnpoItQs456NCzFfws=";
19 # Don't use vendored M2libc
22 ln -s ${m2libc}/include/M2libc M2libc
25 # Upstream overrides the optimisation to be -O0, which is incompatible with fortify. Let's disable it.
26 hardeningDisable = [ "fortify" ];
30 nativeCheckInputs = [ mescc-tools ];
35 install -D bin/M2-Mesoplanet $out/bin/M2-Mesoplanet
41 description = "Macro Expander Saving Our m2-PLANET";
42 homepage = "https://github.com/oriansj/M2-Mesoplanet";
43 license = licenses.gpl3Only;
44 maintainers = teams.minimal-bootstrap.members;
45 inherit (m2libc.meta) platforms;
46 mainProgram = "M2-Mesoplanet";