1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/termbox/default.nix

25 lines
769 B
Nix
Raw Normal View History

2018-10-12 11:48:05 +01:00
{ 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 ];
};
}