mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
cbd816146d
Co-authored-by: Adam C Stephens <2071575+adamcstephens@users.noreply.github.com>
42 lines
852 B
Nix
42 lines
852 B
Nix
{ mkYarnPackage
|
|
, fetchFromGitHub
|
|
, fetchYarnDeps
|
|
, lib
|
|
}:
|
|
|
|
mkYarnPackage rec {
|
|
pname = "lxd-ui";
|
|
version = "0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "canonical";
|
|
repo = "lxd-ui";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-DygWNktangFlAqinBm6wWsRLGmX6yjhmRJ2iU0yjcgk=";
|
|
};
|
|
|
|
packageJSON = ./package.json;
|
|
offlineCache = fetchYarnDeps {
|
|
yarnLock = "${src}/yarn.lock";
|
|
sha256 = "sha256-B1SVCViX1LEFoBLMdFk9qaoayku7Y+zU5c4JEJkLmwE=";
|
|
};
|
|
|
|
buildPhase = ''
|
|
yarn --offline build
|
|
'';
|
|
|
|
installPhase = ''
|
|
cp -rv deps/lxd-ui/build/ui/ $out
|
|
'';
|
|
|
|
doDist = false;
|
|
|
|
meta = {
|
|
description = "Web user interface for LXD.";
|
|
homepage = "https://github.com/canonical/lxd-ui";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ jnsgruk ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|