2013-09-06 00:33:28 +00:00
|
|
|
{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline }:
|
2011-08-05 19:18:02 +00:00
|
|
|
|
2013-02-22 20:24:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-02-22 20:05:40 +00:00
|
|
|
name = "bacula-5.2.13";
|
2011-08-05 19:18:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-09-06 00:33:28 +00:00
|
|
|
url = "mirror://sourceforge/bacula/${name}.tar.gz";
|
2013-02-21 20:18:26 +00:00
|
|
|
sha256 = "1n3sc0kd7r0afpyi708y3md0a24rbldnfcdz0syqj600pxcd9gm4";
|
2011-08-05 19:18:02 +00:00
|
|
|
};
|
|
|
|
|
2013-09-06 00:33:28 +00:00
|
|
|
buildInputs = [ postgresql sqlite zlib ncurses openssl readline ]
|
|
|
|
# acl relies on attr, which I can't get to build on darwin
|
|
|
|
++ stdenv.lib.optional (!stdenv.isDarwin) acl;
|
2011-08-05 19:18:02 +00:00
|
|
|
|
2013-03-22 00:53:41 +00:00
|
|
|
configureFlags = [
|
2016-04-16 17:47:23 +00:00
|
|
|
"--with-sqlite3=${sqlite.dev}"
|
2013-03-22 00:53:41 +00:00
|
|
|
"--with-postgresql=${postgresql}"
|
|
|
|
];
|
2011-08-05 19:18:02 +00:00
|
|
|
|
2013-03-27 01:24:55 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/sbin/* $out/bin
|
|
|
|
'';
|
|
|
|
|
2013-09-06 00:33:28 +00:00
|
|
|
meta = with stdenv.lib; {
|
2011-08-05 19:18:02 +00:00
|
|
|
description = "Enterprise ready, Network Backup Tool";
|
2013-09-06 00:33:28 +00:00
|
|
|
homepage = http://bacula.org/;
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.gpl2;
|
2016-05-17 11:57:28 +00:00
|
|
|
maintainers = with maintainers; [ domenkozar lovek323 ];
|
2015-05-27 19:56:04 +00:00
|
|
|
platforms = platforms.all;
|
2011-08-05 19:18:02 +00:00
|
|
|
};
|
|
|
|
}
|