diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libchardet/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/libraries/libchardet/default.nix b/pkgs/development/libraries/libchardet/default.nix index b12b642668b90..410c83953aa94 100644 --- a/pkgs/development/libraries/libchardet/default.nix +++ b/pkgs/development/libraries/libchardet/default.nix @@ -1,11 +1,14 @@ -{ stdenv, fetchurl, perl }: +{ stdenv, fetchFromGitHub, perl }: stdenv.mkDerivation rec { - name = "libchardet-1.0.4"; - - src = fetchurl { - url = "http://yupmin.net/wp-content/uploads/2014/03/libchardet-1.0.4.tar.bz2"; - sha256 = "0cvwba4la25qw70ap8jd5r743a9jshqd26nnbh5ph68zj1imlgzl"; + name = "libchardet-${version}"; + version = "1.0.5"; + + src = fetchFromGitHub { + owner = "Joungkyun"; + repo = "libchardet"; + rev = version; + sha256 = "0c1k5hf3ssh3cm72w2zpy5k73vhy1gyq5s9rqdawqqa4al8syyvn"; }; nativeBuildInputs = [ perl ]; |