13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
20 rev = "refs/tags/${version}";
21 hash = "sha256-dVTUme+23HaONcvfcgen/y1S0D91oYmgGLGfRcAMJSw=";
24 offlineCache = fetchYarnDeps {
25 yarnLock = "${src}/yarn.lock";
26 hash = "sha256-lPBkGKK6C6C217wqvOoC7on/Dzmk3NkdIkMDMF9CRNQ=";
38 export HOME=$(mktemp -d)
39 yarn config --offline set yarn-offline-mirror "$offlineCache"
40 fixup-yarn-lock yarn.lock
41 yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install
42 patchShebangs node_modules
63 passthru.tests.default = nixosTests.lxd.ui;
64 passthru.updateScript = nix-update-script { };
67 description = "Web user interface for LXD";
68 homepage = "https://github.com/canonical/lxd-ui";
69 changelog = "https://github.com/canonical/lxd-ui/releases/tag/${version}";
70 license = lib.licenses.gpl3;
72 platforms = lib.platforms.linux;