1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00
parser/nix/overlay.nix
2024-05-06 18:39:49 +02:00

13 lines
618 B
Nix

final: prev: {
demostf-parser = final.callPackage ./parser.nix {};
demostf-parser-codegen = final.callPackage ./codegen.nix {};
demostf-parser-codegen-events = final.runCommand "gameevent_gen.rs" {} ''
${final.demostf-parser-codegen}/bin/codegen ${../test_data/short-2024.dem} events > $out
${final.rustfmt}/bin/rustfmt $out
'';
demostf-parser-codegen-props = final.runCommand "sendprop_gen.rs" {} ''
${final.demostf-parser-codegen}/bin/codegen ${../test_data/short-2024.dem} props > $out
${final.rustfmt}/bin/rustfmt $out
'';
demostf-parser-schema = final.callPackage ./schema.nix {};
}