From e7bbbbb609df41ea90ea9b226990206a45493723 Mon Sep 17 00:00:00 2001 From: emaryn Date: Sun, 16 Mar 2025 01:29:11 +0800 Subject: [PATCH] gopeed: 1.6.10 -> 1.6.11 --- pkgs/by-name/go/gopeed/package.nix | 18 ++++++++++++------ pkgs/by-name/go/gopeed/pubspec.lock.json | 13 ++++++++++++- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/go/gopeed/package.nix b/pkgs/by-name/go/gopeed/package.nix index ae355551d6c5..35feec1bf524 100644 --- a/pkgs/by-name/go/gopeed/package.nix +++ b/pkgs/by-name/go/gopeed/package.nix @@ -8,13 +8,13 @@ }: let - version = "1.6.10"; + version = "1.6.11"; src = fetchFromGitHub { owner = "GopeedLab"; repo = "gopeed"; tag = "v${version}"; - hash = "sha256-sTKPSgy1jDavEd/IM8F6dxojp8oOQTo3/w/YV21JR/Q="; + hash = "sha256-ayPqLRWYSa0rSHqGFS4xp3wUVAl4tfsSPs/SQcUQD60="; }; metaCommon = { @@ -45,14 +45,17 @@ let }; in flutter324.buildFlutterApplication { - inherit version src libgopeed; + inherit version src; pname = "gopeed"; sourceRoot = "${src.name}/ui/flutter"; pubspecLock = lib.importJSON ./pubspec.lock.json; - gitHashes.permission_handler_windows = "sha256-MRTmuH0MfhGaMEb9bRotimAPRlFyl3ovtJUJ2WK7+DA="; + gitHashes = { + install_plugin = "sha256-3FM08D2pbtWmitf8R4pAylVqum7IfbWh6pOIEhJdySk="; + permission_handler_windows = "sha256-MRTmuH0MfhGaMEb9bRotimAPRlFyl3ovtJUJ2WK7+DA="; + }; nativeBuildInputs = [ autoPatchelfHook ]; @@ -61,7 +64,7 @@ flutter324.buildFlutterApplication { preBuild = '' mkdir -p linux/bundle/lib cp ${libgopeed}/lib/libgopeed.so linux/bundle/lib/libgopeed.so - cp ${libgopeed}/bin/host assets/host/host + cp ${libgopeed}/bin/host assets/exec/host ''; postInstall = '' @@ -75,7 +78,10 @@ flutter324.buildFlutterApplication { --add-rpath $out/app/gopeed/lib $out/app/gopeed/gopeed ''; - passthru.updateScript = ./update.sh; + passthru = { + inherit libgopeed; + updateScript = ./update.sh; + }; meta = metaCommon // { mainProgram = "gopeed"; diff --git a/pkgs/by-name/go/gopeed/pubspec.lock.json b/pkgs/by-name/go/gopeed/pubspec.lock.json index 62e21f14af5c..1c46402df193 100644 --- a/pkgs/by-name/go/gopeed/pubspec.lock.json +++ b/pkgs/by-name/go/gopeed/pubspec.lock.json @@ -337,7 +337,7 @@ "version": "0.3.4+2" }, "crypto": { - "dependency": "transitive", + "dependency": "direct main", "description": { "name": "crypto", "sha256": "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855", @@ -680,6 +680,17 @@ "source": "hosted", "version": "4.3.0" }, + "install_plugin": { + "dependency": "direct main", + "description": { + "path": ".", + "ref": "cf08af829f4a4145634f8a047108f505fdbe5eaa", + "resolved-ref": "cf08af829f4a4145634f8a047108f505fdbe5eaa", + "url": "https://github.com/hui-z/flutter_install_plugin.git" + }, + "source": "git", + "version": "2.1.0" + }, "intl": { "dependency": "transitive", "description": {