mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{ stdenv, fetchgit, pkgconfig, nettools, gettext, readline, openssl, python
|
|
, 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}";
|
|
version = "14.2.2";
|
|
|
|
src = fetchgit {
|
|
url = "git://github.com/bareos/bareos";
|
|
rev = "refs/tags/Release/${version}";
|
|
sha256 = "05mkhhgnkz6y3m5msf1zq3b63k2l2fci9xg0k9347b3shmg61pqd";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|