2024-07-21 21:19:39 +00:00
|
|
|
{
|
2024-07-21 22:28:22 +00:00
|
|
|
stdenvNoCC,
|
2024-07-21 21:19:39 +00:00
|
|
|
fetchzip,
|
|
|
|
lib,
|
|
|
|
}: let
|
|
|
|
pname = "headscale-ui";
|
|
|
|
version = "0-unstable-2024-02-24";
|
|
|
|
in
|
2024-07-21 22:28:22 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2024-07-21 21:19:39 +00:00
|
|
|
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=";
|
2024-07-21 21:19:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-07-21 22:28:22 +00:00
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -r ./* $out/share
|
|
|
|
runHook postInstall
|
2024-07-21 21:19:39 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A web frontend for the headscale Tailscale-compatible coordination server";
|
|
|
|
homepage = "https://github.com/gurucomputing/headscale-ui";
|
|
|
|
license = [lib.licenses.bsd3];
|
|
|
|
};
|
|
|
|
}
|