@@ -0,0 +1,24 @@
1+{ stdenv, fetchFromGitHub, python3 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "termbox-${version}";
5+ version = "1.1.2";
6+ src = fetchFromGitHub {
7+ owner = "nsf";
8+ repo = "termbox";
9+ rev = "v${version}";
10+ sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs";
11+ };
12+ nativeBuildInputs = [ python3 ];
13+ configurePhase = "python3 ./waf configure --prefix=$out";
14+ buildPhase = "python3 ./waf build";
15+ installPhase = "python3 ./waf install --destdir=$out";
16+ meta = with stdenv.lib; {
17+ description = "Library for writing text-based user interfaces";
18+ license = licenses.mit;
19+ homepage = "https://github.com/nsf/termbox#readme";
20+ downloadPage = "https://github.com/nsf/termbox/releases";
21+ maintainers = with maintainers; [ fgaz ];
22+ };
23+}
24+