nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05-pre 25 lines 713 B view raw
1{ stdenv, lib, fetchzip, libtool, pkg-config, ncurses, unibilium }: 2 3stdenv.mkDerivation rec { 4 pname = "libtermkey"; 5 6 version = "0.22"; 7 8 src = fetchzip { 9 url = "http://www.leonerd.org.uk/code/libtermkey/libtermkey-${version}.tar.gz"; 10 sha256 = "02dks6bj7n23lj005yq41azf95wh3hapmgc2lzyh12vigkjh67rg"; 11 }; 12 13 makeFlags = [ "PREFIX=$(out)" ] 14 ++ lib.optional stdenv.isDarwin "LIBTOOL=${libtool}/bin/libtool"; 15 16 nativeBuildInputs = [ libtool pkg-config ]; 17 buildInputs = [ ncurses unibilium ]; 18 19 meta = with lib; { 20 description = "Terminal keypress reading library"; 21 homepage = "http://www.leonerd.org.uk/code/libtermkey"; 22 license = licenses.mit; 23 platforms = platforms.unix; 24 }; 25}