about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorFrancesco Gazzetta <francygazz@gmail.com>2018-10-12 12:48:05 +0200
committerFrancesco Gazzetta <francygazz@gmail.com>2018-10-12 15:51:57 +0200
commitd6273e5161b85a8eec197c07d48cb0136b10fb1a (patch)
tree727132f360a9747a1978ebc1ff301546465ae5c1 /pkgs/development/libraries
parent06df7c9a332d884d74e498f3fb1ae31bb3d6976c (diff)
downloadnixlib-d6273e5161b85a8eec197c07d48cb0136b10fb1a.tar
nixlib-d6273e5161b85a8eec197c07d48cb0136b10fb1a.tar.gz
nixlib-d6273e5161b85a8eec197c07d48cb0136b10fb1a.tar.bz2
nixlib-d6273e5161b85a8eec197c07d48cb0136b10fb1a.tar.lz
nixlib-d6273e5161b85a8eec197c07d48cb0136b10fb1a.tar.xz
nixlib-d6273e5161b85a8eec197c07d48cb0136b10fb1a.tar.zst
nixlib-d6273e5161b85a8eec197c07d48cb0136b10fb1a.zip
termbox: init at 1.1.2
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/termbox/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/libraries/termbox/default.nix b/pkgs/development/libraries/termbox/default.nix
new file mode 100644
index 000000000000..0898289978a2
--- /dev/null
+++ b/pkgs/development/libraries/termbox/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchFromGitHub, python3 }:
+
+stdenv.mkDerivation rec {
+  name = "termbox-${version}";
+  version = "1.1.2";
+  src = fetchFromGitHub {
+    owner = "nsf";
+    repo = "termbox";
+    rev = "v${version}";
+    sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs";
+  };
+  nativeBuildInputs = [ python3 ];
+  configurePhase = "python3 ./waf configure --prefix=$out";
+  buildPhase = "python3 ./waf build";
+  installPhase = "python3 ./waf install --destdir=$out";
+  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 ];
+  };
+}
+