clash-verge-rev: add meta for internal package (#340771)

This commit is contained in:
Aleksana 2024-09-10 16:14:41 +08:00 committed by GitHub
commit faeb037228
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 23 additions and 4 deletions

View File

@ -27,6 +27,20 @@ let
hash = "sha256-HyRTOqPj4SnV9gktqRegxOYz9c8mQHOX+IrdZlHhYpo=";
};
meta-unwrapped = {
description = "Clash GUI based on tauri";
homepage = "https://github.com/clash-verge-rev/clash-verge-rev";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
Guanran928
bot-wxt1221
];
platforms = [
"x86_64-linux"
"aarch64-linux"
];
};
service-cargo-hash = "sha256-NBeHR6JvdCp06Ug/UEtLY2tu3iCmlsCU0x8umRbJXLU=";
service = callPackage ./service.nix {
@ -36,6 +50,7 @@ let
service-cargo-hash
pname
;
meta = meta-unwrapped;
};
webui = callPackage ./webui.nix {
@ -44,6 +59,8 @@ let
src
pname
;
meta = meta-unwrapped;
};
sysproxy-hash = "sha256-TEC51s/viqXUoEH9rJev8LdC2uHqefInNcarxeogePk=";
@ -55,8 +72,8 @@ let
src
sysproxy-hash
webui
meta
;
meta = meta-unwrapped;
};
meta = {

View File

@ -7,10 +7,11 @@
pname,
webkitgtk,
service-cargo-hash,
meta,
}:
rustPlatform.buildRustPackage {
pname = "${pname}-service";
inherit version;
inherit version meta;
src = src-service;
sourceRoot = "${src-service.name}";

View File

@ -13,7 +13,7 @@
openssl,
}:
rustPlatform.buildRustPackage {
inherit version src;
inherit version src meta;
pname = "${pname}-unwrapped";
sourceRoot = "${src.name}/src-tauri";

View File

@ -5,9 +5,10 @@
pnpm,
nodejs,
stdenv,
meta,
}:
stdenv.mkDerivation {
inherit version src;
inherit version src meta;
pname = "${pname}-webui";
pnpmDeps = pnpm.fetchDeps {
inherit pname version src;