incus-ui: Use function with mkDerivation instead of rec
Some checks failed
/ check (push) Failing after 19m32s
Some checks failed
/ check (push) Failing after 19m32s
This commit is contained in:
parent
43d24fab35
commit
217dfcd389
1 changed files with 63 additions and 61 deletions
|
@ -10,20 +10,21 @@
|
||||||
rsync,
|
rsync,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (
|
||||||
|
finalAttrs: {
|
||||||
pname = "incus-ui";
|
pname = "incus-ui";
|
||||||
version = "0.6";
|
version = "0.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "canonical";
|
owner = "canonical";
|
||||||
repo = "lxd-ui";
|
repo = "lxd-ui";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
# hash = "sha256-52MRf7bk8Un9wqz00+JjDmuJgPKYhgAhIbMbcAuf8W8=";
|
# hash = "sha256-52MRf7bk8Un9wqz00+JjDmuJgPKYhgAhIbMbcAuf8W8=";
|
||||||
hash = "sha256-3Ts6lKyzpMDVATCKD1fFIGTskWzWpQUT9S8cPFnlEOs=";
|
hash = "sha256-3Ts6lKyzpMDVATCKD1fFIGTskWzWpQUT9S8cPFnlEOs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
offlineCache = fetchYarnDeps {
|
offlineCache = fetchYarnDeps {
|
||||||
yarnLock = "${src}/yarn.lock";
|
yarnLock = "${finalAttrs.src}/yarn.lock";
|
||||||
hash = "sha256-0pyxwMGGqogEe1w3sail8NUDHtxLQZU9Wg8E6rQNy4o=";
|
hash = "sha256-0pyxwMGGqogEe1w3sail8NUDHtxLQZU9Wg8E6rQNy4o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -85,4 +86,5 @@ stdenv.mkDerivation rec {
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue