diff options
author | lassulus <lass@lassul.us> | 2017-03-07 22:57:02 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-03-07 22:57:02 +0100 |
commit | 6a9ff979548fdc28193569b0e514353838c87896 (patch) | |
tree | fccccb2b5cef8a1217b20093ef55f73dbd9f1793 | |
parent | 8e490fa31dfb7c1401ab486784cf99bfe4f01b7d (diff) |
l 2 vim: use concat
-rw-r--r-- | lass/2configs/vim.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lass/2configs/vim.nix b/lass/2configs/vim.nix index 4e0af0dc7..e6cf8d101 100644 --- a/lass/2configs/vim.nix +++ b/lass/2configs/vim.nix @@ -207,11 +207,14 @@ let alldirs = attrValues dirs ++ map dirOf (attrValues files); in unique (sort lessThan alldirs); - vim = pkgs.writeDashBin "vim" '' - set -efu - (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString mkdirs}) - exec ${pkgs.vim}/bin/vim "$@" - ''; + vim = pkgs.concat "vim" [ + pkgs.vim + (pkgs.writeDashBin "vim" '' + set -efu + (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString mkdirs}) + exec ${pkgs.vim}/bin/vim "$@" + '') + ]; hs.vim = pkgs.writeText "hs.vim" '' syn region String start=+\[[[:alnum:]]*|+ end=+|]+ |