2019-01-10 01:59:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3, wafHook, fetchpatch }:
|
2018-10-12 12:48:05 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "termbox";
|
2018-10-12 12:48:05 +02:00
|
|
|
version = "1.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nsf";
|
|
|
|
repo = "termbox";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs";
|
|
|
|
};
|
2019-01-10 01:59:44 +01:00
|
|
|
|
|
|
|
# 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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-11-11 22:20:41 +01:00
|
|
|
nativeBuildInputs = [ python3 wafHook ];
|
2019-01-10 01:59:44 +01:00
|
|
|
|
2018-10-12 12:48:05 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library for writing text-based user interfaces";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/nsf/termbox#readme";
|
|
|
|
downloadPage = "https://github.com/nsf/termbox/releases";
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
};
|
|
|
|
}
|