mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
globalprotect-openconnect: use ver rev instead of commit & correct sha256
This commit is contained in:
parent
a78dd785b2
commit
cf7ea5b6b5
@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, fetchFromGitHub
|
||||
, qmake, qtwebsockets, qtwebengine, wrapQtAppsHook, openconnect
|
||||
, cmake, qtwebsockets, qtwebengine, wrapQtAppsHook, openconnect
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -9,26 +9,16 @@ stdenv.mkDerivation rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "yuezk";
|
||||
repo = "GlobalProtect-openconnect";
|
||||
rev = "c14a6ad1d2b62f8d297bc4cfbcb1dcea4d99112f";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "sha256-M3+YGdN7LuuFEP9n94YJ/UDVhti/VlX0FzYMGeYebP4=";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-w2y6DOFgQ8Xpi1abibvRNpEUbBsdvwDMGqlJxQSCpVg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ qmake wrapQtAppsHook ];
|
||||
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [ openconnect qtwebsockets qtwebengine ];
|
||||
|
||||
patchPhase = ''
|
||||
for f in GPClient/GPClient.pro \
|
||||
GPClient/com.yuezk.qt.gpclient.desktop \
|
||||
GPService/GPService.pro \
|
||||
GPService/dbus/com.yuezk.qt.GPService.service \
|
||||
GPService/systemd/gpservice.service; do
|
||||
substituteInPlace $f \
|
||||
--replace /usr $out \
|
||||
--replace /etc $out/lib;
|
||||
done;
|
||||
|
||||
substituteInPlace GPService/gpservice.h \
|
||||
--replace /usr/local/bin/openconnect ${openconnect}/bin/openconnect;
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user