Issue 1773 - nix build: tests are failing with Assets directory not found

This commit is contained in:
Nico 2023-01-07 22:11:32 +01:00
parent 185dccc1cc
commit dcd1a45a22

View File

@ -95,6 +95,11 @@
NIX_GIT_HASH = "";
NIX_GIT_TAG = "";
};
assets = pkgs.runCommand "veloren-assets" {} ''
mkdir $out
ln -sf ${./assets} $out/assets
${checkIfLfsIsSetup pkgs "$out/assets/voxygen/background/bg_main.jpg"}
'';
wrapWithAssets = _: old: let
runtimeLibs = with pkgs; [
xorg.libX11
@ -108,11 +113,6 @@
alsa-lib
vulkan-loader
];
assets = pkgs.runCommand "veloren-assets" {} ''
mkdir $out
ln -sf ${./assets} $out/assets
${checkIfLfsIsSetup pkgs "$out/assets/voxygen/background/bg_main.jpg"}
'';
wrapped =
common.internal.pkgsSet.utils.wrapDerivation old
{nativeBuildInputs = [pkgs.makeWrapper];}
@ -143,6 +143,7 @@
ncl.addNativeBuildInputs oldAttrs (with pkgs; [python3 pkg-config]);
SHADERC_LIB_DIR = "${pkgs.shaderc.lib}/lib";
VELOREN_ASSETS = "${assets}";
doCheck = false;
dontCheck = true;