Unverified Commit fc401b78 authored by rnhmjoj's avatar rnhmjoj
Browse files

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
parent 0a64adcb
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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/"
  '';