File tree Expand file tree Collapse file tree 2 files changed +9
-22
lines changed
pkgs/by-name/cl/clash-verge-rev Expand file tree Collapse file tree 2 files changed +9
-22
lines changed Original file line number Diff line number Diff line change 1414} :
1515let
1616 pname = "clash-verge-rev" ;
17- version = "2.2.2 " ;
17+ version = "2.2.3 " ;
1818
1919 src = fetchFromGitHub {
2020 owner = "clash-verge-rev" ;
2121 repo = "clash-verge-rev" ;
2222 tag = "v${ version } " ;
23- hash = "sha256-CiVwFSCbCxFm8naogpL73gUp8HNHwcIiygSVon4WNZk =" ;
23+ hash = "sha256-MJD1FWh/43pOffdWznCVPyGVXcIyqhXzmoEmyM8Tspg =" ;
2424 } ;
2525
2626 src-service = fetchFromGitHub {
3232
3333 service-cargo-hash = "sha256-lMOQznPlkHIMSm5nOLuGP9qJXt3CXnd+q8nCu+Xbbt8=" ;
3434 npm-hash = "sha256-v9+1NjXo/1ogmep+4IP+9qoUR1GJz87VGeOoMzQ1Rfw=" ;
35- vendor-hash = "sha256-nU3bIxD5zggTScNGH3HmnnXUGkLMwnQbIBVI1DmIpFs =" ;
35+ vendor-hash = "sha256-y3XVHi00mnuVFxSd02YBgfWuXYRVIs+e0tITXNOFRsA =" ;
3636
3737 service = callPackage ./service.nix {
3838 inherit
Original file line number Diff line number Diff line change 44 src ,
55 libayatana-appindicator ,
66 vendor-hash ,
7- fetchpatch ,
87 glib ,
98 webui ,
109 pkg-config ,
1615 meta ,
1716 webkitgtk_4_1 ,
1817 openssl ,
18+ jq ,
1919} :
2020
2121rustPlatform . buildRustPackage {
@@ -30,20 +30,7 @@ rustPlatform.buildRustPackage {
3030 OPENSSL_NO_VENDOR = 1 ;
3131 } ;
3232
33- patches = [
34- ( fetchpatch {
35- name = "fix-service-mode-mihomo-check.patch" ;
36- url = "https://github.com/clash-verge-rev/clash-verge-rev/commit/16d4f9fe7ee95b7312a10bf216c818c3e144dea7.patch" ;
37- hash = "sha256-FQHm1jjo0W1IokMDJGWVMVV9DWItG1prX+TIysL12DA=" ;
38- } )
39- ] ;
40-
41- prePatch = ''
42- cd ..
43- '' ;
44-
4533 postPatch = ''
46- cd src-tauri
4734 substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
4835 --replace-fail "libayatana-appindicator3.so.1" "${ libayatana-appindicator } /lib/libayatana-appindicator3.so.1"
4936
@@ -54,18 +41,18 @@ rustPlatform.buildRustPackage {
5441 --replace-fail '"kwriteconfig5"' '"${ libsForQt5 . kconfig } /bin/kwriteconfig5"' \
5542 --replace-fail '"kwriteconfig6"' '"${ kdePackages . kconfig } /bin/kwriteconfig6"'
5643
57- substituteInPlace ./tauri.conf.json \
58- --replace-fail '"frontendDist": "../dist",' '"frontendDist": "${ webui } ",' \
59- --replace-fail '"beforeBuildCommand": "pnpm run web:build"' '"beforeBuildCommand": ""'
60- sed -i -e '/externalBin/d' -e '/resources/d' tauri.conf.json
61- sed -i -e '/sidecar/d' -e '/resources/d' tauri.linux.conf.json
44+ cat tauri.conf.json | jq 'del(.bundle.resources) | del(.bundle.externalBin) | .build.frontendDist = "${ webui } " | .build.beforeBuildCommand = ""' > tauri.conf.json.2
45+ mv tauri.conf.json.2 tauri.conf.json
46+ cat tauri.linux.conf.json | jq 'del(.bundle.externalBin)' > tauri.linux.conf.json.2
47+ mv tauri.linux.conf.json.2 tauri.linux.conf.json
6248 chmod 777 ../.cargo
6349 rm ../.cargo/config.toml
6450 '' ;
6551
6652 nativeBuildInputs = [
6753 pkg-config
6854 rustPlatform . cargoSetupHook
55+ jq
6956 ] ;
7057
7158 buildInputs = [
You can’t perform that action at this time.
0 commit comments