headscale-ui: lock version

This commit is contained in:
raf 2025-05-28 03:13:16 +03:00
commit bb3d4a1b1e
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -2,33 +2,33 @@
lib, lib,
stdenvNoCC, stdenvNoCC,
fetchzip, fetchzip,
pins, }:
}: let stdenvNoCC.mkDerivation (finalAttrs: {
pin = pins.headscale-ui;
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "headscale-ui"; pname = "headscale-ui";
inherit (pin) version; version = "2025.05.22";
src = fetchzip { src = fetchzip {
url = "https://github.com/gurucomputing/headscale-ui/releases/download/${finalAttrs.version}/headscale-ui.zip"; url = "https://github.com/gurucomputing/headscale-ui/releases/download/${finalAttrs.version}/headscale-${finalAttrs.version}.tar.gz";
sha256 = "sha256-Autk8D9G1Ott2ahbgJ7mGZKDChsSDgfrOhnurNiIdsQ="; hash = "sha256-qLX8YW5jjy4K4et7dkS0Bvug+k3NVw0m2d2Q0wLE1J4=";
stripRoot = false;
}; };
dontConfigure = true;
dontBuild = true;
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
ls -lah mkdir -p $out/share/
mkdir -p $out/share cp -rvf ./* $out/share/
cp -rvf ./* $out/share
runHook postInstall runHook postInstall
''; '';
meta = { meta = {
description = "A web frontend for the headscale Tailscale-compatible coordination server"; description = "Web frontend for the headscale Tailscale-compatible coordination server";
homepage = "https://github.com/gurucomputing/headscale-ui"; homepage = "https://github.com/gurucomputing/headscale-ui";
license = [lib.licenses.bsd3]; license = [lib.licenses.bsd3];
maintainers = with lib.maintainers; [NotAShelf]; maintainers = with lib.maintainers; [NotAShelf];
}; };
}) })