fix: use source tarball for nix build

This commit is contained in:
Kevin Yue committed 2025-12-23 21:53:30 +08:00
1 parent e2acdd7df2
commit 977725868a
1 file changed
+6 -4
+6 -4
View File
@@ -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;
[