headscale-ui: clean up

This commit is contained in:
raf 2024-07-22 01:28:22 +03:00
parent c8caa4bb87
commit 0fc5b7253d
Signed by: NotAShelf
GPG key ID: AF26552424E53993

View file

@ -1,21 +1,23 @@
{ {
stdenv, stdenvNoCC,
fetchzip, fetchzip,
lib, lib,
}: let }: let
pname = "headscale-ui"; pname = "headscale-ui";
version = "0-unstable-2024-02-24"; version = "0-unstable-2024-02-24";
in in
stdenv.mkDerivation { stdenvNoCC.mkDerivation {
inherit pname version; inherit pname version;
src = fetchzip { src = fetchzip {
url = "https://github.com/gurucomputing/headscale-ui/releases/download/2024.02.24-beta-1/headscale-ui.zip"; url = "https://github.com/gurucomputing/headscale-ui/releases/download/2024.02.24-beta1/headscale-ui.zip";
sha256 = "sha256-6SUgtSTFvJWNdsWz6AiOfUM9p33+8EhDwyqHX7O2+NQ="; sha256 = "sha256-HHzxGlAtVXs0jfNJ/khbNA/aQsGKvii1Hm+8hlJQYYY=";
}; };
installPhase = '' installPhase = ''
mkdir -p $out/share/ runHook preInstall
cp -r web/ $out/share/ mkdir -p $out/share
cp -r ./* $out/share
runHook postInstall
''; '';
meta = { meta = {