myrddin: init at 0.3.1

This commit is contained in:
Lucas Ransan 2021-06-25 17:19:23 +02:00
parent 370a10c27f
commit f9d39423e7
No known key found for this signature in database
GPG key ID: 37E8293E1B8B2307
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,57 @@
{ stdenv
, lib
, fetchFromGitHub
, pkg-config
, bison
, binutils
, binutils-unwrapped
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "myrddin";
version = "0.3.1";
src = fetchFromGitHub {
repo = "mc";
owner = "oridb";
rev = "r${version}";
sha256 = "7ImjiG/rIKGPHq3Vh/mftY7pqw/vfOxD3LJeT87HmCk=";
};
nativeBuildInputs = [
bison
pkg-config
makeWrapper
];
postPatch = ''
substituteInPlace mk/c.mk \
--replace "-Werror" ""
'';
buildPhase = ''
make bootstrap
make
'';
postInstall = ''
for b in $out/bin/*; do
wrapProgram $b --prefix PATH : $out/bin:${lib.makeBinPath [ binutils ]}
done
'';
checkPhase = ''
make check
'';
doCheck = true;
meta = with lib; {
description = "Systems language that is both powerful and fun to use";
homepage = "https://myrlang.org/";
license = licenses.mit;
maintainers = with maintainers; [ luc65r ];
platforms = platforms.all;
};
}

View file

@ -22285,6 +22285,8 @@ in
mustache-hpp = callPackage ../development/libraries/mustache-hpp { };
myrddin = callPackage ../development/compilers/myrddin { };
myrica = callPackage ../data/fonts/myrica { };
nafees = callPackage ../data/fonts/nafees { };