silver-searcher: Replace fetchurl with fetchFromGitHub

This commit is contained in:
Jascha Geerds 2015-06-22 16:19:23 +02:00
parent fd6600c809
commit a612e397d8
1 changed files with 6 additions and 4 deletions

View File

@ -1,12 +1,14 @@
{stdenv, fetchurl, autoreconfHook, pkgconfig, pcre, zlib, lzma}: {stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, pcre, zlib, lzma}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "silver-searcher-${version}"; name = "silver-searcher-${version}";
version = "0.30.0"; version = "0.30.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/ggreer/the_silver_searcher/archive/${version}.tar.gz"; owner = "ggreer";
sha256 = "1nx5glgd0x55z073qcaazav5sm0jfvxai2bykkldniv6z601pdm3"; repo = "the_silver_searcher";
rev = "${version}";
sha256 = "07fz0hyisy3kisisxy558lfmmjdxq03x5ljdfxfkpw0xbfwgz14j";
}; };
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";