zilch/lang/rust/default.nix

26 lines
853 B
Nix
Raw Normal View History

{ chickenPackages, libsodium, callPackage, xxd, yj }:
2024-11-25 22:06:44 +00:00
(callPackage ../../lib/build-chicken-parallel {}) {
name = "zilch-lang-rust";
src = ./.;
buildInputs = with chickenPackages.chickenEggs; [
chickenPackages.chicken
r7rs
json
srfi-152
srfi-113
srfi-207
(callPackage ../../core {})
xxd
2024-11-25 22:06:44 +00:00
];
overrides.NIX_CFLAGS_COMPILE = "-DYJ_PATH=\"${yj}/bin/yj\"";
2024-11-25 22:06:44 +00:00
overrides.preBuild = ''
2025-02-12 13:12:04 +00:00
(cat ${./helpers/src/bin/buildscript-runner.rs}; printf '\0') | xxd -i -n runner_source > runner_source.h
(cat ${./helpers/src/bin/rustc-wrapper.rs}; printf '\0') | xxd -i -n rustc_wrap_source > rustc_wrap_source.h
(cat ${./helpers/src/bin/cfg-reader.rs}; printf '\0') | xxd -i -n cfgfetch_source > cfgfetch_source.h
2025-03-02 20:32:05 +00:00
(cat ${./helpers/src/bin/false.rs}; printf '\0') | xxd -i -n false_source > false_source.h
2024-11-25 22:06:44 +00:00
'';
}