summary refs log tree commit diff
path: root/pkgs/development/libraries/librsync
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-03-26 16:52:41 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-03-26 16:52:41 -0700
commit0a8efb537b4567de62fae09c8eb179039345f1cf (patch)
tree38856cbc18b02b70919842f49f1b28861ecc8ddd /pkgs/development/libraries/librsync
parentcd3b4602003283e1fc820316d86c23bbb218254f (diff)
downloadnixpkgs-0a8efb537b4567de62fae09c8eb179039345f1cf.tar
nixpkgs-0a8efb537b4567de62fae09c8eb179039345f1cf.tar.gz
nixpkgs-0a8efb537b4567de62fae09c8eb179039345f1cf.tar.bz2
nixpkgs-0a8efb537b4567de62fae09c8eb179039345f1cf.tar.lz
nixpkgs-0a8efb537b4567de62fae09c8eb179039345f1cf.tar.xz
nixpkgs-0a8efb537b4567de62fae09c8eb179039345f1cf.tar.zst
nixpkgs-0a8efb537b4567de62fae09c8eb179039345f1cf.zip
librsync: 0.9.7 -> 1.0.0
Diffstat (limited to 'pkgs/development/libraries/librsync')
-rw-r--r--pkgs/development/libraries/librsync/default.nix23
1 files changed, 15 insertions, 8 deletions
diff --git a/pkgs/development/libraries/librsync/default.nix b/pkgs/development/libraries/librsync/default.nix
index 76daf7d748b..c5a7a7202e2 100644
--- a/pkgs/development/libraries/librsync/default.nix
+++ b/pkgs/development/libraries/librsync/default.nix
@@ -1,22 +1,29 @@
-{stdenv, fetchurl}:
+{ stdenv, fetchFromGitHub, autoreconfHook, perl, zlib, bzip2, popt }:
 
-stdenv.mkDerivation {
-  name = "librsync-0.9.7";
+stdenv.mkDerivation rec {
+  name = "librsync-${version}";
+  version = "1.0.0";
   
-  src = fetchurl {
-    url = mirror://sourceforge/librsync/librsync-0.9.7.tar.gz;
-    sha256 = "1mj1pj99mgf1a59q9f2mxjli2fzxpnf55233pc1klxk2arhf8cv6";
+  src = fetchFromGitHub {
+    owner = "librsync";
+    repo = "librsync";
+    rev = "v${version}";
+    sha256 = "0rc2pksdd0mhdvk8y1yix71rf19wdx1lb2ryrkhi7vcy240rvgvc";
   };
 
+  buildInputs = [ autoreconfHook perl zlib bzip2 popt ];
+
   configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";
 
   crossAttrs = {
     dontStrip = true;
   };
 
-  meta = {
+  meta = with stdenv.lib; {
     homepage = http://librsync.sourceforge.net/;
-    license = stdenv.lib.licenses.lgpl2Plus;
+    license = licenses.lgpl2Plus;
     description = "Implementation of the rsync remote-delta algorithm";
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ wkennington ];
   };
 }