From e6c1973971cde736b3649e752f0705a7c2b9d0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 18 Oct 2014 14:02:40 +0200 Subject: [PATCH] vim-plugins: update source hash for command-t And use fetchzip instead of fetchurl towards github.com to not let this happen again. (fetchzip checks the hash on the *extracted* archive, so changes in compression algo etc. doesn't change the hash.) --- pkgs/misc/vim-plugins/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/vim-plugins/default.nix b/pkgs/misc/vim-plugins/default.nix index dce0cbf6685..33595cab6c0 100644 --- a/pkgs/misc/vim-plugins/default.nix +++ b/pkgs/misc/vim-plugins/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, bash, stdenv, python, cmake, vim, perl, ruby, unzip, which, fetchgit, clang }: +{ fetchurl, bash, stdenv, python, cmake, vim, perl, ruby, unzip, which, fetchgit, fetchzip, clang }: /* About Vim and plugins @@ -172,9 +172,10 @@ in rec command_T = buildVimPlugin rec { version = "1.8"; name = "command-t-${version}"; - src = fetchurl { + src = fetchzip { + inherit name; url = "https://github.com/wincent/Command-T/archive/${version}.tar.gz"; - sha256 = "ad8664292e6eee40fbe195d856d20d93a8630e8c0149317ad72cc39423630800"; + sha256 = "186qz1smf7w91r68p724whg6d821f7ph6ks63l2vkhff8f9qqhrc"; }; buildInputs = [ perl ruby ]; buildPhase = ''