flaci: init at 0-unstable-2024-12-10

Co-authored-by: Donovan Glover <donovan@dglover.co>
This commit is contained in:
Anna Aurora 2023-12-18 15:57:48 +01:00
parent 2d99c7f729
commit 1431978735
No known key found for this signature in database

View file

@ -0,0 +1,52 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
makeWrapper,
electron,
}:
buildNpmPackage {
pname = "flaci";
version = "0-unstable-2024-12-10";
src = fetchFromGitHub {
owner = "gitmh";
repo = "FLACI";
rev = "cc03bb2b4c8cf205d04936cc2110acd34397b789";
hash = "sha256-Wgkxlz4d1KNoPL9290D1qIbOqUYW/iAIWE9YL35Tfno=";
};
env = {
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
};
npmDepsHash = "sha256-6X4R6D9GAe4DiIXCT62xKbHhLqdTE/BLlXJQKwt8oaQ=";
nativeBuildInputs = [
makeWrapper
];
dontNpmBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/flaci}
cp -r * $out/share/flaci/
makeWrapper ${lib.getExe electron} $out/bin/FLACI \
--add-flags $out/share/flaci \
--add-flags "--no-sandbox"
runHook postInstall
'';
dontWrapGApps = true;
meta = {
description = "Create and test formal languages with automaton and create diagrams for them";
homepage = "https://flaci.com";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ annaaurora ];
mainProgram = "FLACI";
};
}