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:
parent
3f41074f15
commit
a2d2991e32
3 changed files with 51 additions and 1 deletions
7
pkgs/mullvad-exclude-wrapper/default.nix
Normal file
7
pkgs/mullvad-exclude-wrapper/default.nix
Normal 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; })
|
Loading…
Add table
Add a link
Reference in a new issue