about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-02-27 08:57:03 +0100
committerGitHub <noreply@github.com>2024-02-27 08:57:03 +0100
commitc5fa199a32cfb291bfa3346da195e49c34885a46 (patch)
tree5c2416b9a0c70e2d17e1fdbd7fa71fb2b719f5a7 /pkgs
parent81c45357ec8ee398c2de2f5df7920b7c0391d1d8 (diff)
parent2892afcaebe414b36cd2586eb47e49c17487d4cb (diff)
Merge pull request #290984 from sarahec/floret-105-buildfix
python311Packages.floret: fix build by supplying <cstdint>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/floret/cstdint.patch12
-rw-r--r--pkgs/development/python-modules/floret/default.nix2
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/floret/cstdint.patch b/pkgs/development/python-modules/floret/cstdint.patch
new file mode 100644
index 0000000000000..f30f557cb7013
--- /dev/null
+++ b/pkgs/development/python-modules/floret/cstdint.patch
@@ -0,0 +1,12 @@
+diff --git a/src/args.cc b/src/args.cc
+index a8975e81624c..99854c919341 100644
+--- a/src/args.cc
++++ b/src/args.cc
+@@ -10,6 +10,7 @@
+ 
+ #include <stdlib.h>
+ 
++#include <cstdint>
+ #include <iostream>
+ #include <stdexcept>
+ #include <string>
diff --git a/pkgs/development/python-modules/floret/default.nix b/pkgs/development/python-modules/floret/default.nix
index 72248cf8dbaa2..6ca020ac81df1 100644
--- a/pkgs/development/python-modules/floret/default.nix
+++ b/pkgs/development/python-modules/floret/default.nix
@@ -23,6 +23,8 @@ buildPythonPackage rec {
     hash = "sha256-7vkw6H0ZQoHEwNusY6QWh/vPbSCdP1ZaaqABHsZH6hQ=";
   };
 
+  patches = [./cstdint.patch ];
+
   nativeBuildInputs = [
     pybind11
     setuptools