nixpkgs/pkgs/tools/backup/bareos/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, nettools, gettext, readline, openssl, python
2014-11-04 19:54:25 +01:00
, ncurses ? null
, sqlite ? null, postgresql ? null, mysql ? null, libcap ? null
, zlib ? null, lzo ? null, acl ? null, ceph ? null
}:
assert sqlite != null || postgresql != null || mysql != null;
with stdenv.lib;
stdenv.mkDerivation rec {
name = "bareos-${version}";
2015-02-06 22:00:40 +01:00
version = "14.2.3";
2014-11-04 19:54:25 +01:00
src = fetchFromGitHub {
owner = "bareos";
repo = "bareos";
rev = "Release/${version}";
name = "${name}-src";
2015-02-06 22:00:40 +01:00
sha256 = "04z6nwlnk6kk5ghbdw5g34mkypmpk4qpkd08cjxwblg8sdj4j8fl";
2014-11-04 19:54:25 +01:00
};
buildInputs = [
pkgconfig nettools gettext readline openssl python
ncurses sqlite postgresql mysql libcap zlib lzo acl ceph
];
configureFlags = [
"--exec-prefix=\${out}"
"--with-openssl=${openssl}"
"--with-python=${python}"
"--with-readline=${readline}"
"--enable-ndmp"
"--enable-lmdb"
] ++ optional (sqlite != null) "--with-sqlite3=${sqlite}"
++ optional (postgresql != null) "--with-postgresql=${postgresql}"
++ optional (mysql != null) "--with-mysql=${mysql}";
meta = with stdenv.lib; {
homepage = http://www.bareos.org/;
description = "a fork of the bacula project.";
license = licenses.agpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}