mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2024-11-01 11:01:16 +00:00
pkgs/headscale-ui: init at 2023.01.30-beta-1
This commit is contained in:
parent
3da067df4e
commit
080355c23d
2 changed files with 37 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
# need manual intervention with each update
|
||||
cloneit = callPackage ./cloneit {};
|
||||
reposilite-bin = callPackage ./reposilite-bin {};
|
||||
headscale-ui = callPackage ./headscale-ui {};
|
||||
|
||||
# patched packages
|
||||
foot-transparent = foot.overrideAttrs (prev: {
|
||||
|
|
36
pkgs/headscale-ui/default.nix
Normal file
36
pkgs/headscale-ui/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
stdenv,
|
||||
fetchurl,
|
||||
unzip,
|
||||
lib,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "headscale-ui";
|
||||
version = "2023.01.30-beta-1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/gurucomputing/${pname}/releases/download/${version}/headscale-ui.zip";
|
||||
sha256 = "sha256-6SUgtSTFvJWNdsWz6AiOfUM9p33+8EhDwyqHX7O2+NQ=";
|
||||
};
|
||||
|
||||
buildInputs = [unzip];
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
unzip $src
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/
|
||||
cp -r web/ $out/share/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A web frontend for the headscale Tailscale-compatible coordination server";
|
||||
homepage = "https://github.com/gurucomputing/headscale-ui";
|
||||
license = [lib.licenses.bsd3];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue