1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00

muon: init at 2019-11-27

This commit is contained in:
Oleksii Filonenko 2019-11-27 16:32:48 +02:00
parent 1b5df99e7a
commit 1b77edf664
No known key found for this signature in database
GPG key ID: F3510FE5691629A1
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper }:
stdenv.mkDerivation rec {
pname = "muon";
version = "2019-11-27";
src = fetchFromGitHub {
owner = "nickmqb";
repo = pname;
rev = "6d3a5054ae75b0e5a0ae633cf8cbc3e2a054f8b3";
sha256 = "1sb1i08421jxlx791g8nh4l239syaj730hagkzc159g0z65614zz";
};
nativeBuildInputs = [ makeWrapper ];
buildPhase = ''
mkdir -p $out/bin $out/share/mu
cp -r lib $out/share/mu
gcc -O3 -o $out/bin/mu-unwrapped bootstrap/mu64.c
'';
installPhase = ''
makeWrapper $out/bin/mu-unwrapped $out/bin/mu \
--add-flags $out/share/mu/lib/core.mu
'';
meta = with lib; {
description = "Modern low-level programming language";
homepage = "https://github.com/nickmqb/muon";
license = licenses.mit;
maintainers = with maintainers; [ filalex77 ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -8525,6 +8525,8 @@ in
mozart2-binary = callPackage ../development/compilers/mozart/binary.nix { };
muon = callPackage ../development/compilers/muon { };
nim = callPackage ../development/compilers/nim { };
nrpl = callPackage ../development/tools/nrpl { };