feat(package): hemar: antlr grammar, but still does not work
This commit is contained in:
38
package/hemar/parser/default.nix
Normal file
38
package/hemar/parser/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ dash, hectic, symlinkJoin }:
|
||||
let
|
||||
shell = "${dash}/bin/dash";
|
||||
bashOptions = [
|
||||
"errexit"
|
||||
"nounset"
|
||||
];
|
||||
|
||||
test = hectic.writeShellApplication {
|
||||
inherit shell bashOptions;
|
||||
name = "hemar-test";
|
||||
runtimeInputs = [ ];
|
||||
|
||||
text = ''
|
||||
# shellcheck disable=SC2034
|
||||
WORKSPACE=${./.}
|
||||
${builtins.readFile hectic.helpers.posix-shell.log}
|
||||
${builtins.readFile ./test.sh}
|
||||
'';
|
||||
};
|
||||
|
||||
hemar = hectic.writeShellApplication {
|
||||
inherit shell bashOptions;
|
||||
name = "hemar";
|
||||
runtimeInputs = [ ];
|
||||
|
||||
text = ''
|
||||
# shellcheck disable=SC2034
|
||||
WORKSPACE=${./.}
|
||||
${builtins.readFile hectic.helpers.posix-shell.log}
|
||||
${builtins.readFile ./hemar.sh}
|
||||
'';
|
||||
};
|
||||
in
|
||||
symlinkJoin {
|
||||
name = "hemar";
|
||||
paths = [ hemar test ];
|
||||
}
|
||||
Reference in New Issue
Block a user