From 8d6a9400572fec5fdfdb019f6b8c5c97efdfe297 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Wed, 14 May 2014 20:01:31 +0200 Subject: [PATCH] Add ori, a secure distributed filesystem. --- pkgs/tools/backup/ori/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/backup/ori/default.nix diff --git a/pkgs/tools/backup/ori/default.nix b/pkgs/tools/backup/ori/default.nix new file mode 100644 index 000000000000..fe8b7dd4f0a5 --- /dev/null +++ b/pkgs/tools/backup/ori/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, boost, pkgconfig, scons, utillinux, fuse, libevent, openssl, zlib }: + +stdenv.mkDerivation rec { + version = "0.8.1"; + name = "ori-${version}"; + + src = fetchurl { + url = "https://bitbucket.org/orifs/ori/downloads/ori-0.8.1.tar.xz"; + sha256 = "8ce1a3dfbb6d1538885e993616bdfe71be44711d48f7f6798ff6bc0a39b3deca"; + }; + + buildInputs = [ + boost pkgconfig scons utillinux fuse libevent openssl zlib + ]; + + buildPhase = '' + scons PREFIX=$out install + ''; + + installPhase = ":"; + + meta = with stdenv.lib; { + description = "A secure distributed file system"; + homepage = http://ori.scs.stanford.edu/; + license = licenses.mit; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 88cbb2b3f978..2d580bea35c0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -677,6 +677,8 @@ let par2Support = (config.bup.par2Support or false); }; + ori = callPackage ../tools/backup/ori { }; + atool = callPackage ../tools/archivers/atool { }; bzip2 = callPackage ../tools/compression/bzip2 { };