feat(pkgs): add genericBinWrapper & mullvadExcludeWrapper

These allow creating wrapped packages that passthrough their arguments, so
`.override` can still be called on them with same arguments.
This commit is contained in:
Felix Schröter 2023-04-26 00:11:42 +02:00
parent 3f41074f15
commit a2d2991e32
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 51 additions and 1 deletions

View file

@ -0,0 +1,7 @@
{ writeShellScript, genericBinWrapper, mullvad-vpn }:
args:
let
wrapper = writeShellScript "mullvad-exclude" ''
${mullvad-vpn}/bin/mullvad-exclude "@EXECUTABLE@" "$@"
'';
in genericBinWrapper (args // { inherit wrapper; })