Merge pull request #286614 from mkg20001/incus-ui

incus.ui: init at 0.5
This commit is contained in:
Adam C. Stephens 2024-02-15 07:53:33 -05:00 committed by GitHub
commit 0855890473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 0 deletions

View File

@ -165,6 +165,7 @@ symlinkJoin {
passthru = {
inherit client unwrapped;
ui = callPackage ./ui.nix {};
inherit (unwrapped) tests;
};

View File

@ -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
'';
})