incus-ui: Use function with mkDerivation instead of rec
Some checks failed
/ check (push) Failing after 19m32s

This commit is contained in:
Erwin Boskma 2024-02-26 17:01:24 +01:00
parent 43d24fab35
commit 217dfcd389
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -10,20 +10,21 @@
rsync,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (
finalAttrs: {
pname = "incus-ui";
version = "0.6";
src = fetchFromGitHub {
owner = "canonical";
repo = "lxd-ui";
rev = version;
rev = finalAttrs.version;
# hash = "sha256-52MRf7bk8Un9wqz00+JjDmuJgPKYhgAhIbMbcAuf8W8=";
hash = "sha256-3Ts6lKyzpMDVATCKD1fFIGTskWzWpQUT9S8cPFnlEOs=";
};
offlineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-0pyxwMGGqogEe1w3sail8NUDHtxLQZU9Wg8E6rQNy4o=";
};
@ -86,3 +87,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
};
}
)