diff --git a/pkgs/applications/networking/cluster/nixops/unwrapped.nix b/pkgs/applications/networking/cluster/nixops/unwrapped.nix index 4527ed9121e0..9ac608bb8ff7 100644 --- a/pkgs/applications/networking/cluster/nixops/unwrapped.nix +++ b/pkgs/applications/networking/cluster/nixops/unwrapped.nix @@ -25,7 +25,10 @@ buildPythonApplication rec { }; postPatch = '' - substituteInPlace nixops/args.py --replace "@version@" "${version}-pre-${ + substituteInPlace pyproject.toml --replace-fail \ + 'include = ["nix/*.nix", "nixops/py.typed" ]' \ + 'include = [ { path = "nix/*.nix", format = "wheel" }, { path = "nixops/py.typed", format = "wheel" } ]' + substituteInPlace nixops/args.py --replace-fail "@version@" "${version}-pre-${ lib.substring 0 7 src.rev or "dirty" }" '';