1{ lib, stdenv, go-md2man, fetchFromGitHub, fetchpatch }:
2
3stdenv.mkDerivation rec {
4 pname = "yascreen";
5 version = "1.86";
6
7 src = fetchFromGitHub {
8 owner = "bbonev";
9 repo = "yascreen";
10 rev = "v${version}";
11 sha256 = "sha256-z7j2yceiUyJNdyoVXAPiINln2/MUMqVJh+VwQnmzO2A=";
12 };
13
14 nativeBuildInputs = [ go-md2man ];
15 makeFlags = [ "PREFIX=$(out)" ];
16
17 patches = [
18 (fetchpatch {
19 url = "https://github.com/bbonev/yascreen/commit/a30b8fce66a3db9f1194fede30a48424ed3d696b.patch";
20 sha256 = "sha256-Bnaf3OVMlqyYMdGsJ6fF3oYsWT01FcjuRzxi6xfbnZg=";
21 })
22 ];
23
24 meta = with lib; {
25 homepage = "https://github.com/bbonev/yascreen";
26 description = "Yet Another Screen Library (curses replacement for daemons and embedded apps)";
27 license = licenses.lgpl3;
28 maintainers = [ maintainers.arezvov ];
29 platforms = platforms.linux;
30 };
31}