python312Packages.faster-fifo: pin to gcc12 on linux

This commit is contained in:
Martin Weinelt 2024-05-05 23:12:04 +02:00
parent 8c1235a549
commit 923517acd6
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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";