Unverified Commit 08558904 authored by Adam C. Stephens's avatar Adam C. Stephens Committed by GitHub
Browse files

Merge pull request #286614 from mkg20001/incus-ui

incus.ui: init at 0.5
parents 6a6f5206 d1c4c31d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ symlinkJoin {

  passthru = {
    inherit client unwrapped;
    ui = callPackage ./ui.nix {};

    inherit (unwrapped) tests;
  };
+26 −0
Original line number Diff line number Diff line
{ 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
  '';
})