From a612e397d8e85c2eedb131d558464c6782d03b47 Mon Sep 17 00:00:00 2001 From: Jascha Geerds Date: Mon, 22 Jun 2015 16:19:23 +0200 Subject: [PATCH] silver-searcher: Replace fetchurl with fetchFromGitHub --- pkgs/tools/text/silver-searcher/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/text/silver-searcher/default.nix b/pkgs/tools/text/silver-searcher/default.nix index cebcd565d5b..fbd33ce68da 100644 --- a/pkgs/tools/text/silver-searcher/default.nix +++ b/pkgs/tools/text/silver-searcher/default.nix @@ -1,12 +1,14 @@ -{stdenv, fetchurl, autoreconfHook, pkgconfig, pcre, zlib, lzma}: +{stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, pcre, zlib, lzma}: stdenv.mkDerivation rec { name = "silver-searcher-${version}"; version = "0.30.0"; - src = fetchurl { - url = "https://github.com/ggreer/the_silver_searcher/archive/${version}.tar.gz"; - sha256 = "1nx5glgd0x55z073qcaazav5sm0jfvxai2bykkldniv6z601pdm3"; + src = fetchFromGitHub { + owner = "ggreer"; + repo = "the_silver_searcher"; + rev = "${version}"; + sha256 = "07fz0hyisy3kisisxy558lfmmjdxq03x5ljdfxfkpw0xbfwgz14j"; }; NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";