about summary refs log tree commit diff
path: root/pkgs/applications/altcoins/litecoin.nix
diff options
context:
space:
mode:
authorndowens <ndowens04@gmail.com>2017-03-07 14:47:59 -0600
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-03-10 20:48:45 +0000
commit65b8a97ab341d18bfeb1026c3e19cf69ca20a140 (patch)
treea762940a5fd52516fb18a14e568313c3efb7a39f /pkgs/applications/altcoins/litecoin.nix
parentb34b4674d2c810ebc339cdd299544685692ebedb (diff)
downloadnixlib-65b8a97ab341d18bfeb1026c3e19cf69ca20a140.tar
nixlib-65b8a97ab341d18bfeb1026c3e19cf69ca20a140.tar.gz
nixlib-65b8a97ab341d18bfeb1026c3e19cf69ca20a140.tar.bz2
nixlib-65b8a97ab341d18bfeb1026c3e19cf69ca20a140.tar.lz
nixlib-65b8a97ab341d18bfeb1026c3e19cf69ca20a140.tar.xz
nixlib-65b8a97ab341d18bfeb1026c3e19cf69ca20a140.tar.zst
nixlib-65b8a97ab341d18bfeb1026c3e19cf69ca20a140.zip
litecoin: 0.10.2.2 -> 0.13.2.1
Diffstat (limited to 'pkgs/applications/altcoins/litecoin.nix')
-rw-r--r--pkgs/applications/altcoins/litecoin.nix21
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/applications/altcoins/litecoin.nix b/pkgs/applications/altcoins/litecoin.nix
index 38e671e89940..9b19d2f29969 100644
--- a/pkgs/applications/altcoins/litecoin.nix
+++ b/pkgs/applications/altcoins/litecoin.nix
@@ -1,28 +1,31 @@
-{ stdenv, fetchurl
+{ stdenv, fetchFromGitHub
 , pkgconfig, autoreconfHook
 , openssl, db48, boost, zlib, miniupnpc
 , glib, protobuf, utillinux, qt4, qrencode
-, withGui }:
+, withGui, libevent }:
 
 with stdenv.lib;
 stdenv.mkDerivation rec {
 
   name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version;
-  version = "0.10.2.2";
+  version = "0.13.2.1";
 
-  src = fetchurl {
-    url = "https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz";
-    sha256 = "1p1h2654b7f2lyrmihcjmpmx6sjpkgsifcm2ixxb2g9jh6qq8b4m";
+  src = fetchFromGitHub {
+    owner = "litecoin-project";
+    repo = "litecoin";
+    rev = "v${version}";
+    sha256 = "0hml1crml6rx7im8dfbig3znmvnk2di61ybbhrhpad5mj0yrih30";
   };
 
-  buildInputs = [ pkgconfig autoreconfHook openssl
-                  openssl db48 boost zlib miniupnpc glib protobuf utillinux ]
+  nativeBuildInputs = [ pkgconfig autoreconfHook ];
+  buildInputs = [ openssl db48 boost zlib
+                  miniupnpc glib protobuf utillinux libevent ]
                   ++ optionals withGui [ qt4 qrencode ];
 
   configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
                      ++ optionals withGui [ "--with-gui=qt4" ];
 
-  meta = with stdenv.lib; {
+  meta = {
     description = "A lite version of Bitcoin using scrypt as a proof-of-work algorithm";
     longDescription= ''
       Litecoin is a peer-to-peer Internet currency that enables instant payments