diff --git a/shell.nix b/shell.nix index 6c59037..ae15d3f 100644 --- a/shell.nix +++ b/shell.nix @@ -3,13 +3,21 @@ let pkgsSrc = nixpkgs.pkgs.fetchFromGitHub { owner = "nixos"; repo = "nixpkgs-channels"; - rev = "2b0eace6cf021eed7123fb828483a00c95796829"; # vimtex update - sha256 = "187fmlkr4d1rbhrmcw8r3xnpxl22rvmisk1iswz3hj99j57ds5r6"; + rev = "adfcc2d9531e78bf6a9e3b56e2f4fc873cb3d87b"; + sha256 = "101mh6gb9wlx0lq5pw2m0n1fi3h2pag3ndg184rrqzvn9ynp28iw"; }; pkgs = import pkgsSrc {}; in pkgs.stdenv.mkDerivation { name = "msc-thesis"; + shellHook = '' + alias vim-thesis="vim -p --servername VIM -- \ + $PWD/src/docs/thesis.tex \ + $PWD/src/docs/glossary.tex \ + $PWD/src/docs/parts/context/context.tex \ + $PWD/src/docs/parts/research/research.tex \ + " + ''; buildInputs = [ pkgs.xdotool (pkgs.vim_configurable.customize {