about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2013-08-29 21:27:48 +0000
committerRicardo M. Correia <rcorreia@wizy.org>2014-03-10 23:40:59 +0100
commit05a2b88df70228fbedcfadc2467933e71f901376 (patch)
tree2195ad19ee6d040191e724fa167b8b8a972de286 /pkgs/applications/editors
parent0b66e7f5be618152c0f8e6b983288f04495b00ee (diff)
downloadnixlib-05a2b88df70228fbedcfadc2467933e71f901376.tar
nixlib-05a2b88df70228fbedcfadc2467933e71f901376.tar.gz
nixlib-05a2b88df70228fbedcfadc2467933e71f901376.tar.bz2
nixlib-05a2b88df70228fbedcfadc2467933e71f901376.tar.lz
nixlib-05a2b88df70228fbedcfadc2467933e71f901376.tar.xz
nixlib-05a2b88df70228fbedcfadc2467933e71f901376.tar.zst
nixlib-05a2b88df70228fbedcfadc2467933e71f901376.zip
vimHugeX: also add wrapper for system-wide vimrc
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/vim/wrapper.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/editors/vim/wrapper.nix b/pkgs/applications/editors/vim/wrapper.nix
index 709753ff8eb5..72e868050537 100644
--- a/pkgs/applications/editors/vim/wrapper.nix
+++ b/pkgs/applications/editors/vim/wrapper.nix
@@ -2,10 +2,12 @@
 
 let
 
-  vimrcfile = writeText "vimrc" (if vimrc == null then "" else vimrc);
+  vimrcfile = writeText "vimrc" vimrc;
+
+  p = builtins.parseDrvName vim.name;
 
 in stdenv.mkDerivation rec {
-  name = "vimwrapper-${vim.version}";
+  name = "${p.name}-with-vimrc-${p.version}";
 
   buildInputs = [ makeWrapper vim vimrcfile ];