about summary refs log tree commit diff
path: root/pkgs/by-name/in/incus/ui.nix
blob: a9a660cf24633cf4488512e652977216c197188b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
  '';
})