txr: install vim syntax support

This commit is contained in:
Will Dietz 2019-05-22 21:59:53 -05:00
parent f9dfeab02d
commit 6c834d2f9d
No known key found for this signature in database
GPG key ID: EBB0EA4124809D02

View file

@ -20,7 +20,17 @@ stdenv.mkDerivation rec {
# Remove failing test-- mentions 'usr/bin' so probably related :)
preCheck = "rm -rf tests/017";
# TODO: install 'tl.vim', make avail when txr is installed or via plugin
postInstall = ''
d=$out/share/vim-plugins/txr
mkdir -p $d/{syntax,ftdetect}
cp {tl,txr}.vim $d/syntax/
cat > $d/ftdetect/txr.vim <<EOF
au BufRead,BufNewFile *.txr set filetype=txr | set lisp
au BufRead,BufNewFile *.tl,*.tlo set filetype=tl | set lisp
EOF
'';
meta = with stdenv.lib; {
description = "Programming language for convenient data munging";