nyxexprs/pkgs/headscale-ui/package.nix

30 lines
789 B
Nix
Raw Permalink Normal View History

{
2024-07-21 22:28:22 +00:00
stdenvNoCC,
fetchzip,
lib,
}: let
pname = "headscale-ui";
version = "0-unstable-2024-02-24";
in
2024-07-21 22:28:22 +00:00
stdenvNoCC.mkDerivation {
inherit pname version;
src = fetchzip {
2024-07-21 22:28:22 +00:00
url = "https://github.com/gurucomputing/headscale-ui/releases/download/2024.02.24-beta1/headscale-ui.zip";
sha256 = "sha256-HHzxGlAtVXs0jfNJ/khbNA/aQsGKvii1Hm+8hlJQYYY=";
};
installPhase = ''
2024-07-21 22:28:22 +00:00
runHook preInstall
mkdir -p $out/share
cp -r ./* $out/share
runHook postInstall
'';
meta = {
description = "A web frontend for the headscale Tailscale-compatible coordination server";
homepage = "https://github.com/gurucomputing/headscale-ui";
license = [lib.licenses.bsd3];
maintainers = with lib.maintainers; [NotAShelf];
};
}