nixpkgs/pkgs/tools/backup/bacula/default.nix
R. RyanTM ebe05a7109 bacula: 9.2.2 -> 9.4.1 (#52924)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/bacula/versions
2018-12-27 15:12:54 +01:00

40 lines
1.1 KiB
Nix

{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline }:
stdenv.mkDerivation rec {
name = "bacula-9.4.1";
src = fetchurl {
url = "mirror://sourceforge/bacula/${name}.tar.gz";
sha256 = "0hpxk0f81yx4p1xndsjbwnj7hvvplqlgrw74gv1scq6krabn2pvb";
};
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}"
"--with-logdir=/var/log/bacula"
"--with-working-dir=/var/lib/bacula"
"--mandir=\${out}/share/man"
];
installFlags = [
"logdir=\${out}/logdir"
"working_dir=\${out}/workdir"
];
postInstall = ''
mkdir -p $out/bin
ln -s $out/sbin/* $out/bin
'';
meta = with stdenv.lib; {
description = "Enterprise ready, Network Backup Tool";
homepage = http://bacula.org/;
license = licenses.gpl2;
maintainers = with maintainers; [ domenkozar lovek323 eleanor ];
platforms = platforms.all;
};
}