diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-01-10 01:59:44 +0100 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2019-01-10 09:18:28 +0100 |
commit | d50dacbf80f420f1f52ab73e2812e0304cfe1f59 (patch) | |
tree | cb176ef79f89c0d8a2fc07feea627ae8f4725f40 /pkgs/development/libraries/termbox | |
parent | 6b817682977cd630026c96d0352bb4afcc6af890 (diff) |
termbox: fix build
Applies a patch which fixes the `waf` build on Python 3.7. See also https://hydra.nixos.org/build/86295267
Diffstat (limited to 'pkgs/development/libraries/termbox')
-rw-r--r-- | pkgs/development/libraries/termbox/default.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/development/libraries/termbox/default.nix b/pkgs/development/libraries/termbox/default.nix index 469a6a4c96f9a..eefc976a62b01 100644 --- a/pkgs/development/libraries/termbox/default.nix +++ b/pkgs/development/libraries/termbox/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, python3, wafHook }: +{ stdenv, fetchFromGitHub, python3, wafHook, fetchpatch }: stdenv.mkDerivation rec { name = "termbox-${version}"; @@ -9,7 +9,18 @@ stdenv.mkDerivation rec { rev = "v${version}"; sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs"; }; + + # patch which updates the `waf` version used to build + # to make the package buildable on Python 3.7 + patches = [ + (fetchpatch { + url = https://github.com/nsf/termbox/commit/6fe63ac3ad63dc2c3ac45b770541cc8b7a1d2db7.patch; + sha256 = "1s5747v51sdwvpsg6k9y1j60yn9f63qnylkgy8zrsifjzzd5fzl6"; + }) + ]; + nativeBuildInputs = [ python3 wafHook ]; + meta = with stdenv.lib; { description = "Library for writing text-based user interfaces"; license = licenses.mit; |