mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
flaci: init at 0-unstable-2024-12-10
Co-authored-by: Donovan Glover <donovan@dglover.co>
This commit is contained in:
parent
2d99c7f729
commit
1431978735
1 changed files with 52 additions and 0 deletions
52
pkgs/by-name/fl/flaci/package.nix
Normal file
52
pkgs/by-name/fl/flaci/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue