nixpkgs/pkgs/development/libraries/libtermkey/default.nix
Jörg Thalheim aa22903f1b
libtermkey: 0.20 -> 0.22 (#59570)
libtermkey: 0.20 -> 0.22
2019-10-09 12:17:20 +01:00

25 lines
637 B
Nix

{ stdenv, lib, fetchzip, libtool, pkgconfig, ncurses }:
stdenv.mkDerivation rec {
pname = "libtermkey";
version = "0.22";
src = fetchzip {
url = "http://www.leonerd.org.uk/code/libtermkey/libtermkey-${version}.tar.gz";
sha256 = "02dks6bj7n23lj005yq41azf95wh3hapmgc2lzyh12vigkjh67rg";
};
makeFlags = [ "PREFIX=$(out)" ]
++ stdenv.lib.optional stdenv.isDarwin "LIBTOOL=${libtool}/bin/libtool";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libtool ncurses ];
meta = with lib; {
description = "Terminal keypress reading library";
license = licenses.mit;
platforms = platforms.unix;
};
}