veloren: fixup

- Fix broken install command (metainfo and pixmaps being files)
  See https://github.com/NixOS/nixpkgs/issues/431034#issuecomment-3153830470

- Remove leftover env variable from testing

(cherry picked from commit fc401b784b)
This commit is contained in:
rnhmjoj
2025-08-06 07:48:04 +02:00
committed by github-actions[bot]
parent 08ff218c6c
commit 5ea5c21d18

View File

@@ -61,7 +61,6 @@ rustPlatform.buildRustPackage {
env = {
# Enable unstable features, see https://gitlab.com/veloren/veloren/-/issues/264
RUSTC_BOOTSTRAP = true;
RUSTC_BREAK_ON_ICE = true;
# Set version info, required by veloren-common
NIX_GIT_TAG = "v${version}";
@@ -94,8 +93,8 @@ rustPlatform.buildRustPackage {
postInstall = ''
# Icons
install -Dm644 assets/voxygen/net.veloren.veloren.desktop -t "$out/share/applications"
install -Dm644 assets/voxygen/net.veloren.veloren.png "$out/share/pixmaps"
install -Dm644 assets/voxygen/net.veloren.veloren.metainfo.xml "$out/share/metainfo"
install -Dm644 assets/voxygen/net.veloren.veloren.png -t "$out/share/pixmaps"
install -Dm644 assets/voxygen/net.veloren.veloren.metainfo.xml -t "$out/share/metainfo"
# Assets directory
mkdir -p "$out/share/veloren"; cp -ar assets "$out/share/veloren/"
'';