2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenvNoCC
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "cbqn-bytecode";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "unstable-2023-05-17";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dzaima";
|
|
|
|
repo = "cbqnBytecode";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "32db4dfbfc753835bf112f3d8ae2991d8aebbe3d";
|
|
|
|
hash = "sha256-9uBPrEESn/rB9u0xXwKaQ7ABveQWPc8LRMPlnI/79kg=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
install -D $src/gen/{compiles,explain,formatter,runtime0,runtime1,runtime1x,src} -t $out/dev
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dzaima/cbqnBytecode";
|
|
|
|
description = "CBQN precompiled bytecode";
|
|
|
|
license = licenses.gpl3Plus;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres sternenseemann synthetica shnarazk detegr ];
|
2023-03-24 00:07:29 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|