mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
move nix
This commit is contained in:
parent
c2985d13f2
commit
4e6d6e4b3a
5 changed files with 39 additions and 14 deletions
12
nix/overlay.nix
Normal file
12
nix/overlay.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue