diff --git a/pkgs/development/python-modules/faster-fifo/default.nix b/pkgs/development/python-modules/faster-fifo/default.nix index 1d77707b6aa5..a3b8f491a9da 100644 --- a/pkgs/development/python-modules/faster-fifo/default.nix +++ b/pkgs/development/python-modules/faster-fifo/default.nix @@ -1,6 +1,8 @@ { lib , buildPythonPackage , fetchFromGitHub +, stdenv +, gcc12Stdenv # build-system , cython @@ -11,11 +13,17 @@ , unittestCheckHook }: +let + stdenv' = if stdenv.isLinux then gcc12Stdenv else stdenv; +in buildPythonPackage rec { pname = "faster-fifo"; version = "1.4.5"; format = "pyproject"; + # https://github.com/alex-petrenko/faster-fifo/issues/47\ + stdenv = stdenv'; + src = fetchFromGitHub { owner = "alex-petrenko"; repo = "faster-fifo";