File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildNpmPackage ,
4+ fetchFromGitHub ,
5+ makeWrapper ,
6+ electron ,
7+ } :
8+
9+ buildNpmPackage {
10+ pname = "flaci" ;
11+ version = "0-unstable-2024-12-10" ;
12+
13+ src = fetchFromGitHub {
14+ owner = "gitmh" ;
15+ repo = "FLACI" ;
16+ rev = "cc03bb2b4c8cf205d04936cc2110acd34397b789" ;
17+ hash = "sha256-Wgkxlz4d1KNoPL9290D1qIbOqUYW/iAIWE9YL35Tfno=" ;
18+ } ;
19+
20+ env = {
21+ ELECTRON_SKIP_BINARY_DOWNLOAD = 1 ;
22+ } ;
23+
24+ npmDepsHash = "sha256-6X4R6D9GAe4DiIXCT62xKbHhLqdTE/BLlXJQKwt8oaQ=" ;
25+
26+ nativeBuildInputs = [
27+ makeWrapper
28+ ] ;
29+ dontNpmBuild = true ;
30+
31+ installPhase = ''
32+ runHook preInstall
33+
34+ mkdir -p $out/{bin,share/flaci}
35+ cp -r * $out/share/flaci/
36+ makeWrapper ${ lib . getExe electron } $out/bin/FLACI \
37+ --add-flags $out/share/flaci \
38+ --add-flags "--no-sandbox"
39+
40+ runHook postInstall
41+ '' ;
42+
43+ dontWrapGApps = true ;
44+
45+ meta = {
46+ description = "Create and test formal languages with automaton and create diagrams for them" ;
47+ homepage = "https://flaci.com" ;
48+ license = lib . licenses . mit ;
49+ maintainers = with lib . maintainers ; [ annaaurora ] ;
50+ mainProgram = "FLACI" ;
51+ } ;
52+ }
You can’t perform that action at this time.
0 commit comments