Add wireguard-nat-nftables python script
This commit is contained in:
parent
667b1c256b
commit
299d04142f
6 changed files with 152 additions and 4 deletions
17
pkgs/wireguard-nat-nftables/default.nix
Normal file
17
pkgs/wireguard-nat-nftables/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
nftablesWithPythonOverlay = final: prev: {
|
||||
nftables = (prev.nftables.override { withPython = true; });
|
||||
};
|
||||
pkgs-overlay = pkgs.extend nftablesWithPythonOverlay;
|
||||
in
|
||||
pkgs-overlay.python310Packages.buildPythonApplication {
|
||||
pname = "wireguard-nat-nftables";
|
||||
version = "0.0.1";
|
||||
|
||||
propagatedBuildInputs = with pkgs-overlay; [
|
||||
python310Packages.nftables
|
||||
];
|
||||
|
||||
src = ./src;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue