Merge pull request #113831 from adsr/termbox-v1.1.4

termbox: 1.1.2 -> 1.1.4
This commit is contained in:
Sandro 2021-02-21 08:20:24 +01:00 committed by GitHub
commit 7d470a2c0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,31 +1,22 @@
{ lib, stdenv, fetchFromGitHub, python3, wafHook, fetchpatch }: { lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "termbox"; pname = "termbox";
version = "1.1.2"; version = "1.1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nsf"; owner = "termbox";
repo = "termbox"; repo = "termbox";
rev = "v${version}"; rev = "v${version}";
sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs"; sha256 = "075swv6ajx8m424dbmgbf6fs6nd5q004gjpvx48gkxmnf9spvykl";
}; };
# patch which updates the `waf` version used to build makeFlags = [ "prefix=${placeholder "out"}" ];
# 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 lib; { meta = with lib; {
description = "Library for writing text-based user interfaces"; description = "Library for writing text-based user interfaces";
license = licenses.mit; license = licenses.mit;
homepage = "https://github.com/nsf/termbox#readme"; homepage = "https://github.com/termbox/termbox#readme";
downloadPage = "https://github.com/nsf/termbox/releases"; downloadPage = "https://github.com/termbox/termbox/releases";
maintainers = with maintainers; [ fgaz ]; maintainers = with maintainers; [ fgaz ];
}; };
} }