about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/backup/dar
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/backup/dar')
-rw-r--r--nixpkgs/pkgs/tools/backup/dar/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/backup/dar/default.nix b/nixpkgs/pkgs/tools/backup/dar/default.nix
new file mode 100644
index 000000000000..593e9b34da9f
--- /dev/null
+++ b/nixpkgs/pkgs/tools/backup/dar/default.nix
@@ -0,0 +1,51 @@
+{ stdenv, fetchurl
+, attr, e2fsprogs
+, curl, librsync, libthreadar
+, gpgme, libgcrypt, openssl
+, bzip2, lzo, xz, zlib
+}:
+
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+  version = "2.6.13";
+  pname = "dar";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/dar/${pname}-${version}.tar.gz";
+    sha256 = "15yhpzyzw7h7d74xxh104cnbh19639yxx0502xz85fazwpwrzsiz";
+  };
+
+  outputs = [ "out" "dev" ];
+
+  buildInputs = [
+    curl librsync libthreadar
+    gpgme libgcrypt openssl
+    bzip2 lzo xz zlib
+  ] ++ optionals stdenv.isLinux [ attr e2fsprogs ];
+
+  configureFlags = [
+    "--disable-birthtime"
+    "--disable-upx"
+    "--disable-dar-static"
+    "--disable-build-html"
+    "--enable-threadar"
+  ];
+
+  postInstall = ''
+    # Disable html help
+    rm -r "$out"/share/dar
+  '';
+
+  enableParallelBuilding = true;
+
+  hardeningDisable = [ "format" ];
+
+  meta = {
+    homepage = "http://dar.linux.free.fr";
+    description = "Disk ARchiver, allows backing up files into indexed archives";
+    maintainers = with maintainers; [ izorkin ];
+    license = licenses.gpl2;
+    platforms = platforms.unix;
+  };
+}