mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
29 lines
880 B
Nix
29 lines
880 B
Nix
|
with import <nixpkgs> {};
|
||
|
|
||
|
import ./default.nix {
|
||
|
# 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"
|
||
|
]
|
||
|
);
|
||
|
}
|