mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
33 lines
572 B
Nix
33 lines
572 B
Nix
|
{ dockerTools, buildEnv, rustc, cargo, rust-bindgen, rust-analyzer, nodejs, bash
|
||
|
, meson, ninja, pkg-config }:
|
||
|
|
||
|
dockerTools.buildImage {
|
||
|
name = "rust-backend";
|
||
|
|
||
|
copyToRoot = buildEnv {
|
||
|
name = "rust-backend-root";
|
||
|
paths = [
|
||
|
bash
|
||
|
cargo
|
||
|
rust-bindgen
|
||
|
rust-analyzer
|
||
|
rustc
|
||
|
nodejs
|
||
|
meson
|
||
|
ninja
|
||
|
pkg-config
|
||
|
];
|
||
|
pathsToLink = [ "/bin" "/etc" "/lib" "/share" ];
|
||
|
};
|
||
|
|
||
|
runAsRoot = ''
|
||
|
mkdir -p /data
|
||
|
'';
|
||
|
|
||
|
config = {
|
||
|
Cmd = [ "/bin/bash" ];
|
||
|
WorkingDir = "/data";
|
||
|
Volumes."/data" = { };
|
||
|
};
|
||
|
}
|