nixos-config/devcontainers/rust-backend.nix

22 lines
437 B
Nix
Raw Normal View History

{ dockerTools, foodogsquaredLib, rustc, cargo, rust-bindgen, rust-analyzer
, nodejs }:
2024-10-26 10:35:21 +00:00
dockerTools.buildImage {
name = "fds-rust-backend";
2024-10-26 10:35:21 +00:00
copyToRoot = foodogsquaredLib.buildFDSEnv {
name = "fds-rust-backend-root";
paths = [ cargo rust-bindgen rust-analyzer rustc nodejs ];
2024-10-26 10:35:21 +00:00
};
runAsRoot = ''
mkdir -p /data
'';
config = {
Cmd = [ "/bin/bash" ];
WorkingDir = "/data";
Volumes."/data" = { };
};
}