Merge pull request #194804 from nagy/2048

_2048-in-terminal: unstable-2021-09-12 -> unstable-2022-06-13
This commit is contained in:
Bobby Rong 2022-10-08 14:15:50 +08:00 committed by GitHub
commit 73ad1fdaad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,26 +1,16 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, ncurses, pkg-config }:
{ lib, stdenv, fetchFromGitHub, ncurses, pkg-config }:
stdenv.mkDerivation rec {
pname = "2048-in-terminal";
version = "unstable-2021-09-12";
version = "unstable-2022-06-13";
src = fetchFromGitHub {
sha256 = "1jgacyimn59kxqhrk8jp13qayc2mncxhx393spqcxbz0sj6lxq9p";
rev = "466abe827638598e40cb627d2b017fe8f76b3a14";
repo = "2048-in-terminal";
owner = "alewmoose";
repo = "2048-in-terminal";
rev = "bf22f868a2e0e572f22153468585ec0226a4b8b2";
sha256 = "sha256-Y5ZQYWOiG3QZZsr+d7olUDGAQ1LhRG9X2hBNQDx+Ztw=";
};
# Fix pending upstream inclusion for ncurses-6.3 support:
# https://github.com/alewmoose/2048-in-terminal/pull/6
patches = [
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/alewmoose/2048-in-terminal/commit/b1c78dc4b3cca3a193b1afea1ab85a75966823cf.patch";
sha256 = "05ibpgr83r7zxsak2l0gaf33858bp0sp0mjfdpmcmw745z3jw7q1";
})
];
buildInputs = [ ncurses ];
nativeBuildInputs = [ pkg-config ];