about summary refs log tree commit diff
path: root/pkgs/by-name/in/incus/ui.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/in/incus/ui.nix')
-rw-r--r--pkgs/by-name/in/incus/ui.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/by-name/in/incus/ui.nix b/pkgs/by-name/in/incus/ui.nix
new file mode 100644
index 000000000000..a9a660cf2463
--- /dev/null
+++ b/pkgs/by-name/in/incus/ui.nix
@@ -0,0 +1,26 @@
+{ lxd
+, fetchFromGitHub
+, git
+}:
+
+lxd.ui.overrideAttrs(prev: rec {
+  pname = "incus-ui";
+
+  zabbly = fetchFromGitHub {
+    owner = "zabbly";
+    repo = "incus";
+    rev = "141fb0736cc12083b086c389c68c434f86d5749e";
+    hash = "sha256-6o1LhqGTpuZNdSVbT8wAVcN5A3CwiXcwVOz0AqDxCPw=";
+  };
+
+  nativeBuildInputs = prev.nativeBuildInputs ++ [
+    git
+  ];
+
+  patchPhase = ''
+    for p in $zabbly/patches/ui-canonical*; do
+      echo "applying patch $p"
+      git apply -p1 "$p"
+    done
+  '';
+})