From 977725868a11b771a9bceaa39fa63b46df7ccfad Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Tue, 23 Dec 2025 21:53:30 +0800 Subject: [PATCH] fix: use source tarball for nix build --- flake.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 0f6c02c..6461b40 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,6 @@ naersk.url = "github:nix-community/naersk"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; rust-overlay.url = "github:oxalica/rust-overlay"; - self.submodules = true; }; outputs = @@ -34,6 +33,11 @@ rustc = toolchain; }; + src = pkgs.fetchzip { + url = "https://github.com/yuezk/GlobalProtect-openconnect/releases/download/v${version}/globalprotect-openconnect-${version}.tar.gz"; + hash = "sha256-4hlWP7yvwk4rTvQWuh60D40DJ20GfHhLTYA5+dkc4Hc="; + }; + cpu = pkgs.stdenv.hostPlatform.parsed.cpu.name; gpgui = pkgs.fetchzip { @@ -47,13 +51,11 @@ { # For `nix build` packages.default = naersk'.buildPackage { - inherit pname version; + inherit pname version src; # Must be set to true to avoid issues with the Tauri build process singleStep = true; - src = ./.; - buildInputs = with pkgs; [