zilch-cli-rust: provide default overrides

This commit is contained in:
puck 2025-03-02 21:25:32 +00:00
parent 56ab2a7b71
commit 071bc48a8b
3 changed files with 47 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, eggDerivation, chickenPackages }:
{ pkgs, eggDerivation, chickenPackages, xxd }:
eggDerivation {
name = "zilch-cli";
src = ./.;
@ -9,4 +9,8 @@ eggDerivation {
(pkgs.callPackage ../lang/go {})
(pkgs.callPackage ../lang/rust {})
];
preBuild = ''
(cat ${./overrides.json}; printf '\0') | ${xxd}/bin/xxd -i -n stock_overrides > stock_overrides.h
'';
}