1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 libX11,
6 libXrandr,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "yeahconsole";
11 version = "0.1.3";
12
13 src = fetchFromGitHub {
14 owner = "jceb";
15 repo = "yeahconsole";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-Ea6erNF9hEhDHlWLctu1SHFVoXXXsPeWUbvCBSZwn4s=";
18 };
19
20 buildInputs = [
21 libX11
22 libXrandr
23 ];
24
25 preConfigure = ''
26 sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" Makefile
27 '';
28
29 meta = {
30 description = "Turns an xterm into a gamelike console";
31 homepage = "https://github.com/jceb/yeahconsole";
32 license = lib.licenses.gpl2Only;
33 maintainers = with lib.maintainers; [ jceb ];
34 platforms = lib.platforms.all;
35 broken = stdenv.hostPlatform.isDarwin;
36 };
37})