about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-11-01 06:35:35 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-11-01 06:35:35 +0100
commit3f0a9f0a27ccc41059c8012b9c493b7310791707 (patch)
tree3b7a7819406c1cf8cb99c3d0cd294ce10aed7d90 /pkgs
parent919524cb4fc78b09dd598ee2d5b36a1c11265704 (diff)
vim: Use correct name for single vimscript files.
Just threw me out of zone, because I was terribly annoyed on why the
hell Python indentation isn't done correctly anymore. If the file path
is something like "indent/script4316.vim", Vim won't load it because
it's searching for "indent/$ftname.vim".

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/vim/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/vim/default.nix b/pkgs/vim/default.nix
index 588df3bc..dd49f486 100644
--- a/pkgs/vim/default.nix
+++ b/pkgs/vim/default.nix
@@ -3,7 +3,7 @@
 }:
 
 let
-  fetchVimScript = { srcId, sha256, type }: let
+  fetchVimScript = { srcId, sha256, type, name }: let
     baseUrl = "http://www.vim.org/scripts/download_script.php";
     src = fetchurl {
       name = "script${toString srcId}.vim";
@@ -13,7 +13,7 @@ let
   in stdenv.mkDerivation {
     name = "vim-${type}-${toString srcId}";
     buildCommand = ''
-      install -vD -m 0644 "${src}" "$out/${type}/script${toString srcId}.vim"
+      install -vD -m 0644 "${src}" "$out/${type}/${name}.vim"
     '';
   };
 
@@ -142,18 +142,21 @@ let
     };
 
     glsl = fetchVimScript {
+      name = "glsl";
       srcId = 3194;
       sha256 = "1vqfcpjmfyjc95wns3i84kgd1k5r2lwjjvjcprygi9g9vng7i5xc";
       type = "syntax";
     };
 
     actionScript = fetchVimScript {
+      name = "actionscript";
       srcId = 1205;
       sha256 = "0pdzqg678lhn7lmqf3z9icpj6ff2nnghsxy983kxkn8sblnzlhfs";
       type = "syntax";
     };
 
     indentPython = fetchVimScript {
+      name = "python";
       srcId = 4316;
       sha256 = "1pgdiaqd1hm0qpspy1asj7i103pq0846lnjrxvl6pk17ymww9pmk";
       type = "indent";
@@ -174,12 +177,14 @@ let
     };
 
     indentHaskell = fetchVimScript {
+      name = "haskell";
       srcId = 7407;
       sha256 = "1lj44jkyihmcnj2kcfckhqzr9gfipda9frbzicix2wrc5728kjsv";
       type = "indent";
     };
 
     fishSyntax = fetchVimScript {
+      name = "fish";
       srcId = 20242;
       sha256 = "12gfmyxxf84f19bp8xfmkb9phbfkifn89sjgi8hnv6dn0a5y1zpj";
       type = "syntax";