1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 23:24:35 +00:00
nixpkgs/pkgs/development/libraries/unibilium/default.nix
Matthew Justin Bauer 0c321443d5
unibilium: add ncurses as build input
unibilium expects to use the `ncursesw6-config` command to find terminfo dirs. Before that would fail & default to some nonexistant TERMINFO_DIRS value (on pure systems at least). This will add `ncurses.out` which is a little bit unfortunate because unibilium is meant as a replacement for ncurses. In the future, we should add a `terminfo` output to ncurses so that other things can use its db without pulling in its libraries & binaries.

Fixes #40404.
2018-05-12 10:43:05 -05:00

28 lines
727 B
Nix

{ stdenv, lib, fetchFromGitHub, libtool, pkgconfig, perl, ncurses }:
stdenv.mkDerivation rec {
name = "unibilium-${version}";
version = "2.0.0";
src = fetchFromGitHub {
owner = "mauke";
repo = "unibilium";
rev = "v${version}";
sha256 = "1wa9a32wzqnxqh1jh554afj13dzjr6mw2wzqzw8d08nza9pg2ra2";
};
makeFlags = [ "PREFIX=$(out)" ]
++ stdenv.lib.optional stdenv.isDarwin "LIBTOOL=${libtool}/bin/libtool";
nativeBuildInputs = [ pkgconfig perl ];
buildInputs = [ libtool ncurses ];
meta = with lib; {
description = "A very basic terminfo library";
license = licenses.lgpl3Plus;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ pSub ];
};
}