about summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-24 20:31:44 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-25 17:35:21 +0100
commit9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef (patch)
tree6e5795908883df8f42e0f4491091347ebf8667e4 /pkgs/applications/editors/neovim
parent7b6454cbb959e001a1e421d6cc00a00994fb7518 (diff)
downloadnixlib-9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef.tar
nixlib-9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef.tar.gz
nixlib-9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef.tar.bz2
nixlib-9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef.tar.lz
nixlib-9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef.tar.xz
nixlib-9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef.tar.zst
nixlib-9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef.zip
Add version attribute where maintainers |= nckx
This will probably be mandatory soon, and is a step in the right
direction. Removes the deprecated meta.version, and move some meta
sections to the end of the file where I should have put them in
the first place.
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix
index a27027406e2c..dcb274513102 100644
--- a/pkgs/applications/editors/neovim/default.nix
+++ b/pkgs/applications/editors/neovim/default.nix
@@ -15,11 +15,10 @@ with stdenv.lib;
 
 let
 
-  version = "0.1.1";
-
   # Note: this is NOT the libvterm already in nixpkgs, but some NIH silliness:
-  neovimLibvterm = let version = "2015-11-06"; in stdenv.mkDerivation {
+  neovimLibvterm = stdenv.mkDerivation rec {
     name = "neovim-libvterm-${version}";
+    version = "2015-11-06";
 
     src = fetchFromGitHub {
       sha256 = "0f9r0wnr9ajcdd6as24igmch0n8s1annycb9f4k0vg6fngwaypy9";
@@ -59,8 +58,9 @@ let
     ignoreCollisions = true;
   };
 
-  neovim = stdenv.mkDerivation {
+  neovim = stdenv.mkDerivation rec {
     name = "neovim-${version}";
+    version = "0.1.1";
 
     src = fetchFromGitHub {
       sha256 = "0crswjslp687yp1cpn7nmm0j2sccqhcxryzxv1s81cgpai0fzf60";
@@ -146,7 +146,10 @@ let
 
 in if (vimAlias == false && configure == null) then neovim else stdenv.mkDerivation {
   name = "neovim-${version}-configured";
+  inherit (neovim) version;
+
   nativeBuildInputs = [ makeWrapper ];
+
   buildCommand = ''
     mkdir -p $out/bin
     for item in ${neovim}/bin/*; do