18 lines
408 B
Nix
18 lines
408 B
Nix
{ 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;
|
|
}
|