mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
minimacy: init at 0.6.2
This commit is contained in:
parent
e7ad4296d6
commit
22c85eab53
73
pkgs/development/compilers/minimacy/default.nix
Normal file
73
pkgs/development/compilers/minimacy/default.nix
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
{ lib, stdenv, fetchFromGitHub, makeBinaryWrapper
|
||||||
|
, alsaLib, libX11, libXext, libGL, libGLU
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "minimacy";
|
||||||
|
version = "0.6.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ambermind";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "i0Z1UKApX+elHmFgujwjiF7k6OmtFF37HJim464OMfU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||||
|
|
||||||
|
buildInputs = [ libGL libGLU ] ++ lib.optionals stdenv.isLinux [ alsaLib libX11 libXext ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = "-Wno-unused-result";
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
pushd ${if stdenv.isDarwin then "macos/cmdline" else "unix"}
|
||||||
|
'';
|
||||||
|
|
||||||
|
# TODO: build graphic version for darwin
|
||||||
|
buildFlags = (if stdenv.isDarwin then [ "nox" ] else [ "all" ]) ++ [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
popd
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
bin/${if stdenv.isDarwin then "minimacyMac" else "minimacy"} system/demo/demo.fun.mandelbrot.mcy
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/lib/minimacy
|
||||||
|
cp -r {README.md,LICENSE,system,rom,topLevel.mcy} $out/lib/minimacy
|
||||||
|
install bin/minimacy* -Dt $out/bin
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
for prog in $out/bin/minimacy*;
|
||||||
|
do wrapProgram $prog \
|
||||||
|
--set MINIMACY $out/lib/minimacy
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "An open-source minimalist computing technology";
|
||||||
|
longDescription = ''
|
||||||
|
Minimacy is an open-source minimalist computation system based on the principle "Less is more".
|
||||||
|
It is designed and programmed by Sylvain Huet.
|
||||||
|
'';
|
||||||
|
maintainers = with lib.maintainers; [ jboy ];
|
||||||
|
homepage = "https://minimacy.net";
|
||||||
|
license = lib.licenses.gpl2;
|
||||||
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||||
|
};
|
||||||
|
}
|
@ -15101,6 +15101,8 @@ with pkgs;
|
|||||||
|
|
||||||
microscheme = callPackage ../development/compilers/microscheme { };
|
microscheme = callPackage ../development/compilers/microscheme { };
|
||||||
|
|
||||||
|
minimacy = callPackage ../development/compilers/minimacy { };
|
||||||
|
|
||||||
mint = callPackage ../development/compilers/mint { crystal = crystal_1_2; };
|
mint = callPackage ../development/compilers/mint { crystal = crystal_1_2; };
|
||||||
|
|
||||||
mitama-cpp-result = callPackage ../development/libraries/mitama-cpp-result { };
|
mitama-cpp-result = callPackage ../development/libraries/mitama-cpp-result { };
|
||||||
|
Loading…
Reference in New Issue
Block a user