diff --git a/derivations/dev/pandoc.nix b/derivations/dev/pandoc.nix new file mode 100644 index 0000000..93a3fb1 --- /dev/null +++ b/derivations/dev/pandoc.nix @@ -0,0 +1,26 @@ +{ gitpkgs ? import /home/steveej/src/github/NixOS/nixpkgs {} +, pkgs ? gitpkgs +, name ? "generic" +, version ? "Stable" +, extraBuildInputs ? [] +}: +let + commonVimRC = '' + ''; +in pkgs.stdenv.mkDerivation { + inherit name; + buildInputs = with pkgs; [ + ( import ./vim-pandoc.nix { pkgs=gitpkgs; commonRC=commonVimRC; }) + pandoc + texlive.combined.scheme-medium + python27Packages.pandocfilters + python27Packages.htmltreediff + python27Packages.html5lib + python27Packages.dbus-python + ] ++ extraBuildInputs; + shellHook = '' + pandocname=pandoc_${pkgs.pandoc.version} + setPS1 $pandocname + unset name + ''; +} diff --git a/derivations/dev/vim-pandoc.nix b/derivations/dev/vim-pandoc.nix new file mode 100644 index 0000000..7e17759 --- /dev/null +++ b/derivations/dev/vim-pandoc.nix @@ -0,0 +1,22 @@ +{ commonRC +, +... } @ args : + +import ../../pkg-configuration/vim-derivates/vim.nix (args // { + name = "vim-for-pandoc"; + additionalRC = commonRC + '' + set statusline+=%#warningmsg# + set statusline+=%{SyntasticStatuslineFlag()} + set statusline+=%* + + let g:syntastic_always_populate_loc_list = 1 + let g:syntastic_auto_loc_list = 1 + let g:syntastic_check_on_open = 1 + let g:syntastic_check_on_wq = 0 + ''; + additionalPlugins = [ + "vim-pandoc" + "vim-pandoc-syntax" + "vimpreviewpandoc" + ]; +})