diff --git a/pkgs/incus-ui/default.nix b/pkgs/incus-ui/default.nix index 6b5480c..185c512 100644 --- a/pkgs/incus-ui/default.nix +++ b/pkgs/incus-ui/default.nix @@ -5,6 +5,8 @@ , nodejs , prefetch-yarn-deps , yarn +, gnused +, rsync }: stdenv.mkDerivation rec { @@ -40,6 +42,12 @@ stdenv.mkDerivation rec { configurePhase = '' runHook preConfigure + ${gnused}/bin/sed -i "s/LXD/Incus/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts* + ${gnused}/bin/sed -i "s/devlxd/guestapi/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts* + ${gnused}/bin/sed -i "s/dev\/lxd/dev\/incus/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts* + ${gnused}/bin/sed -i "s/lxd_/incus_/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts* + ${gnused}/bin/sed -i "s/\"lxd\"/\"incus\"/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts* + export HOME=$(mktemp -d) yarn config --offline set yarn-offline-mirror "$offlineCache" fixup-yarn-lock yarn.lock @@ -61,7 +69,8 @@ stdenv.mkDerivation rec { installPhase = '' runHook preInstall - cp -r build/ui $out + mkdir -p $out + ${rsync}/bin/rsync -a build/ui/ $out/ runHook postInstall '';