flake/pkgs/metacubexd/default.nix

33 lines
739 B
Nix

{
lib,
stdenvNoCC,
fetchurl,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "metacubexd";
version = "1.135.0";
src = fetchurl {
url = "https://github.com/MetaCubeX/metacubexd/releases/download/v${finalAttrs.version}/compressed-dist.tgz";
hash = "sha256-37+oAO7vt57mO0G2L3+NcO2ndpxs3PP4+ogVNnWoGBc=";
};
dontConfigure = true;
dontBuild = true;
sourceRoot = ".";
installPhase = ''
mkdir -p $out
cp -r ./* $out
'';
passthru.updateScript = nix-update-script {};
meta = with lib; {
description = "Clash.Meta Dashboard, The Official One, XD";
homepage = "https://github.com/MetaCubeX/metacubexd";
license = licenses.mit;
platforms = platforms.all;
};
})