From e68b43a81213e55350e79a9281dbbe1d2bd65c12 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Wed, 16 Oct 2024 14:53:52 +0200 Subject: [PATCH] fix opensnitch (was completely borked) --- overlays/default.nix | 1 + overlays/grpcio-tools.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 overlays/grpcio-tools.nix diff --git a/overlays/default.nix b/overlays/default.nix index 24f9d7a..4909c9d 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -39,5 +39,6 @@ ./factorio.nix ./ranger.nix ./ncspot.nix + ./grpcio-tools.nix ]; } diff --git a/overlays/grpcio-tools.nix b/overlays/grpcio-tools.nix new file mode 100644 index 0000000..b9a2bc1 --- /dev/null +++ b/overlays/grpcio-tools.nix @@ -0,0 +1,28 @@ +{ prev, final, ... }: +{ + pythonPackagesOverlays = [ + (python-final: python-prev: { + + grpcio-tools = python-prev.grpcio-tools.overrideAttrs (old: { + version = "1.64.1"; + + src = prev.fetchPypi { + pname = "grpcio_tools"; + version = "1.64.1"; + hash = "sha256-crNVC5GtuDVGVuzw9tHUYRKZBEuuEfsefMHRu2a4wes="; + }; + }); + }) + ]; + + python311 = + let + self = prev.python311.override { + inherit self; + packageOverrides = prev.lib.composeManyExtensions final.pythonPackagesOverlays; + }; + in + self; + + python311Packages = final.python311.pkgs; +}