Merge pull request #53722 from Ma27/fix-python37-on-termbox

termbox: fix build
This commit is contained in:
Jörg Thalheim 2019-01-11 11:38:48 +00:00 committed by GitHub
commit ce9bc1ed81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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