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

33 lines
910 B
Nix
Raw Normal View History

2013-09-06 02:33:28 +02:00
{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline }:
stdenv.mkDerivation rec {
name = "bacula-5.2.13";
src = fetchurl {
2013-09-06 02:33:28 +02:00
url = "mirror://sourceforge/bacula/${name}.tar.gz";
2013-02-21 21:18:26 +01:00
sha256 = "1n3sc0kd7r0afpyi708y3md0a24rbldnfcdz0syqj600pxcd9gm4";
};
2013-09-06 02:33:28 +02: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;
configureFlags = [
"--with-sqlite3=${sqlite.dev}"
"--with-postgresql=${postgresql}"
];
2013-03-27 02:24:55 +01:00
postInstall = ''
mkdir -p $out/bin
ln -s $out/sbin/* $out/bin
'';
2013-09-06 02:33:28 +02:00
meta = with stdenv.lib; {
description = "Enterprise ready, Network Backup Tool";
2013-09-06 02:33:28 +02:00
homepage = http://bacula.org/;
license = licenses.gpl2;
maintainers = with maintainers; [ domenkozar lovek323 ];
platforms = platforms.all;
};
}