snx-rs: 3.1.2 -> 4.4.1 (#413854)

authored by kirillrdy and committed by GitHub 62baba46 2bba56ab

+17 -10
+17 -10
pkgs/by-name/sn/snx-rs/package.nix
··· 1 1 { 2 2 fetchFromGitHub, 3 3 glib, 4 - gtk3, 4 + gtk4, 5 5 iproute2, 6 6 kdePackages, 7 7 lib, ··· 14 14 pkg-config, 15 15 rustPlatform, 16 16 webkitgtk_4_1, 17 + graphene, 17 18 nix-update-script, 19 + versionCheckHook, 18 20 }: 19 21 rustPlatform.buildRustPackage rec { 20 22 pname = "snx-rs"; 21 - version = "3.1.2"; 23 + version = "4.4.1"; 22 24 23 25 src = fetchFromGitHub { 24 26 owner = "ancwrd1"; 25 27 repo = "snx-rs"; 26 28 tag = "v${version}"; 27 - hash = "sha256-bLuIXd2pqqiyEP+lDTJYVDZkRZ0HcDkKFZd/qlpuf98="; 29 + hash = "sha256-Juv38ALXf1nMeokBH7Z+39oIscXW7S+OxdD/ZSNs49U="; 28 30 }; 29 31 30 32 passthru.updateScript = nix-update-script { }; ··· 36 38 37 39 buildInputs = [ 38 40 glib 39 - gtk3 41 + gtk4 40 42 kdePackages.kstatusnotifieritem 41 43 libappindicator 42 44 libappindicator-gtk2 ··· 45 47 libsoup_3 46 48 openssl 47 49 webkitgtk_4_1 50 + graphene 48 51 ]; 49 52 50 - postPatch = '' 51 - substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \ 52 - --replace-fail "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1" 53 - ''; 54 - 55 53 checkFlags = [ 56 54 "--skip=platform::linux::net::tests::test_default_ip" 55 + "--skip=platform::linux::tests::test_xfrm_check" 56 + ]; 57 + 58 + nativeInstallCheckInputs = [ 59 + versionCheckHook 57 60 ]; 58 61 59 62 useFetchCargoVendor = true; 60 - cargoHash = "sha256-E5OJVf9CkLn5mFtk4Yacs2OIvAuIw0idSs7QuTNvfgU="; 63 + cargoHash = "sha256-NcoTdu/CQRu0RuZjlngP8lTPaomEiPTcfn2hAt+YjwA="; 64 + 65 + doInstallCheck = true; 66 + versionCheckProgram = "${placeholder "out"}/bin/snx-rs"; 67 + versionCheckProgramArg = "--version"; 61 68 62 69 meta = { 63 70 description = "Open source Linux client for Checkpoint VPN tunnels";