about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/librsync
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/librsync')
-rw-r--r--nixpkgs/pkgs/development/libraries/librsync/0.9.nix26
-rw-r--r--nixpkgs/pkgs/development/libraries/librsync/default.nix25
2 files changed, 51 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/librsync/0.9.nix b/nixpkgs/pkgs/development/libraries/librsync/0.9.nix
new file mode 100644
index 000000000000..3ca84ed2ce5f
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/librsync/0.9.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation {
+  name = "librsync-0.9.7";
+
+  src = fetchurl {
+    url = mirror://sourceforge/librsync/librsync-0.9.7.tar.gz;
+    sha256 = "1mj1pj99mgf1a59q9f2mxjli2fzxpnf55233pc1klxk2arhf8cv6";
+  };
+
+  hardeningDisable = [ "format" ];
+
+  configureFlags = [
+    (stdenv.lib.enableFeature stdenv.isCygwin    "static")
+    (stdenv.lib.enableFeature (!stdenv.isCygwin) "shared")
+  ];
+
+  dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
+
+  meta = {
+    homepage = http://librsync.sourceforge.net/;
+    license = stdenv.lib.licenses.lgpl2Plus;
+    description = "Implementation of the rsync remote-delta algorithm";
+    platforms = stdenv.lib.platforms.unix;
+  };
+}
diff --git a/nixpkgs/pkgs/development/libraries/librsync/default.nix b/nixpkgs/pkgs/development/libraries/librsync/default.nix
new file mode 100644
index 000000000000..e4e96df86c16
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/librsync/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
+
+stdenv.mkDerivation rec {
+  name = "librsync-${version}";
+  version = "2.0.2";
+
+  src = fetchFromGitHub {
+    owner = "librsync";
+    repo = "librsync";
+    rev = "v${version}";
+    sha256 = "1qnr4rk93mhggqjh2025clmlhhgnjhq983p1vbh8i1g8aiqdnapi";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ perl zlib bzip2 popt ];
+
+  dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
+
+  meta = with stdenv.lib; {
+    homepage = http://librsync.sourceforge.net/;
+    license = licenses.lgpl2Plus;
+    description = "Implementation of the rsync remote-delta algorithm";
+    platforms = platforms.unix;
+  };
+}