aboutsummaryrefslogtreecommitdiff
path: root/pkgs/amnezia-client/default.nix
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2024-03-08 16:26:58 +0300
committerspl3g <spleefer6@yandex.ru>2025-05-01 14:56:39 +0300
commit5f89becff7cf8f4fd83e069459f6b8b5d773b956 (patch)
treef8fb820bc76623aacafcaf73d067c7fa2c59b104 /pkgs/amnezia-client/default.nix
parentf3e74cc8ef6fb944cd6e203ca25ea2cea65b778c (diff)
thats a lot of deletions
Diffstat (limited to 'pkgs/amnezia-client/default.nix')
-rw-r--r--pkgs/amnezia-client/default.nix70
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/amnezia-client/default.nix b/pkgs/amnezia-client/default.nix
new file mode 100644
index 0000000..5e8dc60
--- /dev/null
+++ b/pkgs/amnezia-client/default.nix
@@ -0,0 +1,70 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, cmake
+, pkg-config
+, libsecret
+, libgcrypt
+, openssl
+, openvpn
+, tun2socks
+, cloak
+, shadowsocks-libev
+, wireguard-go
+, xray
+, qtbase
+, wrapQtAppsHook
+, qtremoteobjects
+, qtsvg
+, qttools
+, qt5compat
+, qtkeychain
+}:
+
+stdenv.mkDerivation rec {
+ pname = "amnezia-client";
+ version = "4.4.0.0";
+
+ src = fetchFromGitHub {
+ repo = "${pname}";
+ owner = "amnezia-vpn";
+
+ rev = "${version}";
+ sha256 = "0k0sjf1c8iqg9crq4sfzdg4cczaq5pbk5j2873yzsw88rps0awac";
+ fetchSubmodules = true;
+ };
+
+ nativeBuildInputs = [
+ cmake
+ wrapQtAppsHook
+ pkg-config
+ ];
+
+ buildInputs = [
+ qtbase
+ qtremoteobjects
+ qtsvg
+ qttools
+ qt5compat
+ qtkeychain
+ libsecret
+ libgcrypt
+ openssl
+ openvpn
+ tun2socks
+ cloak
+ shadowsocks-libev
+ wireguard-go
+ xray
+ ];
+
+ installPhase = ''
+ runHook preInstall
+ make install
+ mkdir $out/bin
+ mkdir -p $out/usr/share/{pixmaps,applications}
+ cp client/AmneziaVPN $out/bin/
+ cp service/server/AmneziaVPN-service $out/bin/
+ runHook postInstall
+ '';
+}