Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchurl 4, perl 5, libtool 6}: 7 8stdenv.mkDerivation rec { 9 pname = "libvterm-neovim"; 10 # Releases are not tagged, look at commit history to find latest release 11 version = "0.3.1"; 12 13 src = fetchurl { 14 url = "https://www.leonerd.org.uk/code/libvterm/libvterm-${version}.tar.gz"; 15 sha256 = "sha256-JaitnBVIU2jf0Kip3KGuyP6lwn2j+nTsUY1dN4fww5c="; 16 }; 17 18 nativeBuildInputs = [ perl libtool ]; 19 20 makeFlags = [ 21 "CC=${stdenv.cc.targetPrefix}cc" 22 "LIBTOOL=${libtool}/bin/libtool" 23 "PREFIX=$(out)" 24 ]; 25 26 enableParallelBuilding = true; 27 28 meta = with lib; { 29 description = "VT220/xterm/ECMA-48 terminal emulator library"; 30 homepage = "http://www.leonerd.org.uk/code/libvterm/"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ rvolosatovs ]; 33 platforms = platforms.unix; 34 }; 35}