Merge pull request #29479 from florianjacob/fix-tinc-stable
nixos/tinc: Fix tinc cli wrapper for tinc 1.0
This commit is contained in:
commit
149307476e
@ -199,8 +199,10 @@ in
|
|||||||
buildInputs = [ pkgs.makeWrapper ];
|
buildInputs = [ pkgs.makeWrapper ];
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
${concatStringsSep "\n" (mapAttrsToList (network: data: ''
|
${concatStringsSep "\n" (mapAttrsToList (network: data:
|
||||||
makeWrapper ${data.package}/bin/tinc "$out/bin/tinc.${network}" --add-flags "--pidfile=/run/tinc.${network}.pid"
|
optionalString (versionAtLeast data.package.version "1.1pre") ''
|
||||||
|
makeWrapper ${data.package}/bin/tinc "$out/bin/tinc.${network}" \
|
||||||
|
--add-flags "--pidfile=/run/tinc.${network}.pid"
|
||||||
'') cfg.networks)}
|
'') cfg.networks)}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user