git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/tinc: Fix tinc cli wrapper for tinc 1.0.

tinc prior to 1.1 doesn't have the `tinc` executable, and `tincd` isn't of any use while the daemon already runs.

commit8cea87c1eb10fef013dbcea3d1fcb938b6ee5a8f authorFlorian Jacob <projects+git@florianjacob.de> dateSat 16 Sep 2017, 22:05 (9 years ago) parent8180085
1 file changed+4−2
nixos/modules/services/networking/tinc.nix+4−2
nixos/modules/services/networking/tinc.nix+4−2
@@ -199,8 +199,10 @@ in
199199 buildInputs = [ pkgs.makeWrapper ];
200200 buildCommand = ''
201201 mkdir -p $out/bin
202− ${concatStringsSep "\n" (mapAttrsToList (network: data: ''
203− makeWrapper ${data.package}/bin/tinc "$out/bin/tinc.${network}" --add-flags "--pidfile=/run/tinc.${network}.pid"
202+ ${concatStringsSep "\n" (mapAttrsToList (network: data:
203+ optionalString (versionAtLeast data.package.version "1.1pre") ''
204+ makeWrapper ${data.package}/bin/tinc "$out/bin/tinc.${network}" \
205+ --add-flags "--pidfile=/run/tinc.${network}.pid"
204206 '') cfg.networks)}
205207 '';
206208 };