From 3307db5fb425ce85dcf7195bc63aa9334dd4d543 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Wed, 10 Jan 2024 21:55:39 +0100 Subject: [PATCH] incus-ui: Replace branding in places not covered by patches --- pkgs/incus-ui/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 '';