14 resholve.mkDerivation rec {
18 src = fetchFromGitHub {
22 hash = "sha256-26cfYXtZVQ7kIRxY6oNGCqIjdw/hjwXhVKimVgolLgk=";
26 substituteInPlace wgnord \
27 --replace '$conf_dir/countries.txt' "$out/share/countries.txt" \
28 --replace '$conf_dir/countries_iso31662.txt' "$out/share/countries_iso31662.txt"
34 install -Dm 755 wgnord -t $out/bin/
35 install -Dm 644 countries.txt -t $out/share/
36 install -Dm 644 countries_iso31662.txt -t $out/share/
40 scripts = [ "bin/wgnord" ];
41 interpreter = "${bash}/bin/sh";
51 fix.aliases = true; # curl command in an alias
53 "cannot:${iproute2}/bin/ip"
54 "cannot:${wireguard-tools}/bin/wg-quick"
59 description = "NordVPN Wireguard (NordLynx) client in POSIX shell";
60 homepage = "https://github.com/phirecc/wgnord";
61 changelog = "https://github.com/phirecc/wgnord/releases/tag/v${version}";
62 maintainers = with lib.maintainers; [ urandom ];
63 license = licenses.mit;
64 mainProgram = "wgnord";
65 platforms = platforms.linux;