mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
m2-mesoplanet: init at 1.11.0
This commit is contained in:
parent
93db87d3af
commit
cde691ddc2
48
pkgs/by-name/m2/m2-mesoplanet/package.nix
Normal file
48
pkgs/by-name/m2/m2-mesoplanet/package.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, m2libc
|
||||||
|
, mescc-tools
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "m2-mesoplanet";
|
||||||
|
version = "1.11.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "oriansj";
|
||||||
|
repo = "M2-Mesoplanet";
|
||||||
|
rev = "Release_${finalAttrs.version}";
|
||||||
|
hash = "sha256-hE7xvX84q3tk0XakveYDJhrhfBnpoItQs456NCzFfws=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Don't use vendored M2libc
|
||||||
|
postPatch = ''
|
||||||
|
rmdir M2libc
|
||||||
|
ln -s ${m2libc}/include/M2libc M2libc
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Upstream overrides the optimisation to be -O0, which is incompatible with fortify. Let's disable it.
|
||||||
|
hardeningDisable = [ "fortify" ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkTarget = "test";
|
||||||
|
nativeCheckInputs = [ mescc-tools ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -D bin/M2-Mesoplanet $out/bin/M2-Mesoplanet
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Macro Expander Saving Our m2-PLANET";
|
||||||
|
homepage = "https://github.com/oriansj/M2-Mesoplanet";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = teams.minimal-bootstrap.members;
|
||||||
|
inherit (m2libc.meta) platforms;
|
||||||
|
mainProgram = "M2-Mesoplanet";
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue