flake/pkgs/metacubexd/default.nix

34 lines
739 B
Nix
Raw Normal View History

2023-12-13 05:54:34 +00:00
{
2023-12-31 12:23:03 +00:00
lib,
2023-12-13 05:54:34 +00:00
stdenvNoCC,
2023-12-31 12:23:03 +00:00
fetchurl,
2024-01-17 05:06:06 +00:00
nix-update-script,
2023-12-13 05:54:34 +00:00
}:
2024-01-16 14:21:32 +00:00
stdenvNoCC.mkDerivation (finalAttrs: {
2023-12-13 05:54:34 +00:00
pname = "metacubexd";
2024-02-03 01:34:21 +00:00
version = "1.135.0";
2024-01-16 02:29:31 +00:00
2023-12-13 05:54:34 +00:00
src = fetchurl {
2024-01-16 14:21:32 +00:00
url = "https://github.com/MetaCubeX/metacubexd/releases/download/v${finalAttrs.version}/compressed-dist.tgz";
2024-02-03 01:34:21 +00:00
hash = "sha256-37+oAO7vt57mO0G2L3+NcO2ndpxs3PP4+ogVNnWoGBc=";
2023-12-13 05:54:34 +00:00
};
2024-01-16 02:29:31 +00:00
dontConfigure = true;
dontBuild = true;
2023-12-13 05:54:34 +00:00
sourceRoot = ".";
installPhase = ''
mkdir -p $out
cp -r ./* $out
'';
2023-12-31 12:23:03 +00:00
2024-01-17 05:06:06 +00:00
passthru.updateScript = nix-update-script {};
2023-12-31 12:23:03 +00:00
meta = with lib; {
description = "Clash.Meta Dashboard, The Official One, XD";
homepage = "https://github.com/MetaCubeX/metacubexd";
license = licenses.mit;
2024-01-16 02:29:31 +00:00
platforms = platforms.all;
2023-12-31 12:23:03 +00:00
};
2024-01-16 14:21:32 +00:00
})