Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
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";
|
|
};
|
|
}
|