summary refs log tree commit diff
path: root/pkgs/development/libraries/marisa/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/marisa/default.nix')
-rw-r--r--pkgs/development/libraries/marisa/default.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/development/libraries/marisa/default.nix b/pkgs/development/libraries/marisa/default.nix
index ed824ec7592..4b06c58af5f 100644
--- a/pkgs/development/libraries/marisa/default.nix
+++ b/pkgs/development/libraries/marisa/default.nix
@@ -1,16 +1,20 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchFromGitHub, autoreconfHook }:
 
 stdenv.mkDerivation rec {
-  name = "marisa-${version}";
-  version = "0.2.4";
+  pname = "marisa";
+  version = "0.2.5";
 
-  src = fetchurl {
-    url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/marisa-trie/marisa-${version}.tar.gz";
-    sha256 = "1cwzf8hr348zihkiy0qckx0n6rxg7sy113xhbslb1irw1pvs99v7";
+  src = fetchFromGitHub {
+    owner = "s-yata";
+    repo = "marisa-trie";
+    rev = "v${version}";
+    sha256 = "0z4bf55np08q3cbi6gvj3cpw3zp8kf2d0jq6k74pjk066m7rapbb";
   };
 
   enableParallelBuilding = true;
 
+  nativeBuildInputs = [ autoreconfHook ];
+
   meta = with stdenv.lib; {
     homepage    = https://github.com/s-yata/marisa-trie;
     description = "Static and space-efficient trie data structure library";