File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
pkgs/by-name/am/amnezia-vpn Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 33 stdenv ,
44 fetchFromGitHub ,
55 fetchpatch ,
6+ fetchurl ,
67 cmake ,
78 pkg-config ,
89 kdePackages ,
5253 vendorHash = "sha256-zArdGj5yeRxU0X4jNgT5YBI9SJUyrANDaqNPAPH3d5M=" ;
5354 }
5455 ) ;
56+
57+ amneziaPremiumConfig = fetchurl {
58+ url = "https://raw.githubusercontent.com/amnezia-vpn/amnezia-client-lite/f45d6b242c1ac635208a72914e8df76ccb3aa44c/macos-signed-build.sh" ;
59+ hash = "sha256-PnaPVPlyglUphhknWwP7ziuwRz+WOz0k9WRw6Q0nG2c=" ;
60+ postFetch = ''
61+ sed -nri '/PROD_AGW_PUBLIC_KEY|PROD_S3_ENDPOINT/p' $out
62+ '' ;
63+ } ;
5564in
5665stdenv . mkDerivation ( finalAttrs : {
5766 pname = "amnezia-vpn" ;
@@ -124,6 +133,10 @@ stdenv.mkDerivation (finalAttrs: {
124133 qt6 . qttools
125134 ] ;
126135
136+ preConfigure = ''
137+ source ${ amneziaPremiumConfig }
138+ '' ;
139+
127140 installPhase = ''
128141 runHook preInstall
129142
You can’t perform that action at this time.
0 commit comments