Skip to content

Commit

Permalink
Added incus-specific patches to fix branding and API
Browse files Browse the repository at this point in the history
Used sed command to replace various 'LXD' branding with 'Incus' branding, and 

1. Replaced all occurrences of "LXD" with "Incus"
2. Replaced all occurrences of "devlxd" with "guestapi"
3. Replaced "dev/lxd" with "dev/incus"
4. Replaced "lxd_" with "incus_"
5. Replaced occurrences of ""lxd"" with ""incus""

Apart from the branding, this fixes incompatible naming in the web UI.

These are taken directly from the patches used by Incus maintainer Stéphane Grober, in his repository zabbly/incus
  • Loading branch information
cmspam authored Mar 9, 2024
1 parent 9df3e30 commit 2521830
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/by-name/in/incus/ui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ lxd.ui.overrideAttrs(prev: rec {
echo "applying patch $p"
git apply -p1 "$p"
done
sed -i "s/LXD/Incus/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts*
sed -i "s/devlxd/guestapi/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts*
sed -i "s/dev\/lxd/dev\/incus/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts*
sed -i "s/lxd_/incus_/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts*
sed -i "s/\"lxd\"/\"incus\"/g" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts*
'';
})

0 comments on commit 2521830

Please sign in to comment.