aboutsummaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-07-17 14:11:36 +0200
committerKarel Kočí <cynerd@email.cz>2024-07-17 14:11:36 +0200
commit632f8c5cc19be6d7ccd975f825d534627d0cbeff (patch)
tree5681c2fe3879ec7acd387377de2877f58987422b /pkgs
parentdc771c290c882b4229cd0c2793c6faaca125b2a1 (diff)
downloadnixos-personal-632f8c5cc19be6d7ccd975f825d534627d0cbeff.tar.gz
nixos-personal-632f8c5cc19be6d7ccd975f825d534627d0cbeff.tar.bz2
nixos-personal-632f8c5cc19be6d7ccd975f825d534627d0cbeff.zip
pkgs: fix bcg with Python 3.12
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 7094b78..ad2236d 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -39,6 +39,28 @@ in {
nodejs-slim_20 = callPackageNodejs (prev.path + "/pkgs/development/web/nodejs/v20.nix") {enableNpm = false;};
nodejs_22 = callPackageNodejs (prev.path + "/pkgs/development/web/nodejs/v22.nix") {};
nodejs-slim_22 = callPackageNodejs (prev.path + "/pkgs/development/web/nodejs/v22.nix") {enableNpm = false;};
+ pythonPackagesExtensions =
+ prev.pythonPackagesExtensions
+ ++ [
+ (
+ pyfinal: pyprev: {
+ bcg = pyprev.bcg.overrideAttrs {
+ patches =
+ pyprev.bcg.patches
+ ++ [
+ (final.fetchpatch2 {
+ name = "bcg-fix-import-with-Python-3.12.patch";
+ url = "https://github.com/cynerd/bch-gateway/commit/1314c892992d8914802b6c42602c39f6a1418fca.patch";
+ hash = "sha256-+vmkqnnkf81umjesTIFgh0mMh2fCCn/yFyQl6ENP9Cc=";
+ })
+ ];
+ propagatedBuildInputs =
+ pyprev.bcg.propagatedBuildInputs
+ ++ [pyfinal.looseversion];
+ };
+ }
+ )
+ ];
# Older version of packages
flac1_3 = prev.flac.overrideAttrs {