summary refs log tree commit diff
path: root/pkgs/development/libraries/unibilium/default.nix
blob: 332b2deddf783087163eb53e00c2b3d51ee1a9a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, lib, fetchFromGitHub, libtool, pkg-config, perl, ncurses }:

stdenv.mkDerivation rec {
  pname = "unibilium";
  version = "2.1.1";

  src = fetchFromGitHub {
    owner = "neovim";
    repo = "unibilium";
    rev = "v${version}";
    sha256 = "sha256-A/WECvma7u/Mmecvzi0cP168dt4v+zwC8CiFBkqWezA=";
  };

  makeFlags = [ "PREFIX=$(out)" "LIBTOOL=${libtool}/bin/libtool" ];

  strictDeps = true;

  nativeBuildInputs = [ pkg-config perl libtool ];
  buildInputs = [ ncurses ];

  meta = with lib; {
    description = "A very basic terminfo library";
    license = licenses.lgpl3Plus;
    platforms = platforms.linux ++ platforms.darwin;
    maintainers = with maintainers; [ pSub ];
  };
}