2019-08-14 13:12:54 +00:00
|
|
|
with import <nixpkgs> {};
|
|
|
|
|
|
|
|
import ./default.nix {
|
2020-05-09 21:08:00 +00:00
|
|
|
git = git;
|
|
|
|
git-lfs = git-lfs;
|
|
|
|
gnuplot = gnuplot;
|
|
|
|
rustup = rustup;
|
2019-08-14 13:12:54 +00:00
|
|
|
# The source is copied to the nix store. We don't want to do this (including assets) for every
|
|
|
|
# time the `nix-shell` is entered. Therefore we create a source which contains only the files
|
|
|
|
# necessary to evaluate `buildRustPackage` successfully:
|
|
|
|
veloren-src = runCommand "veloren-shell" {} (lib.concatMapStrings
|
|
|
|
(p: "mkdir -p $(dirname $out/${p}); cp ${./. + "/${p}"} $out/${p}\n")
|
|
|
|
[
|
|
|
|
"Cargo.lock"
|
|
|
|
"Cargo.toml"
|
|
|
|
"chat-cli/Cargo.toml"
|
|
|
|
"chat-cli/src/main.rs"
|
|
|
|
"client/Cargo.toml"
|
|
|
|
"client/src/lib.rs"
|
|
|
|
"common/Cargo.toml"
|
|
|
|
"common/src/lib.rs"
|
|
|
|
"server-cli/Cargo.toml"
|
|
|
|
"server-cli/src/main.rs"
|
|
|
|
"server/Cargo.toml"
|
|
|
|
"server/src/lib.rs"
|
|
|
|
"voxygen/Cargo.toml"
|
|
|
|
"voxygen/src/main.rs"
|
|
|
|
"world/Cargo.toml"
|
|
|
|
"world/src/lib.rs"
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|