diff options
Diffstat (limited to 'pkgs/tools/backup/bacula/default.nix')
-rw-r--r-- | pkgs/tools/backup/bacula/default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/tools/backup/bacula/default.nix b/pkgs/tools/backup/bacula/default.nix index 5f3cb2b48d38..d3acdf747539 100644 --- a/pkgs/tools/backup/bacula/default.nix +++ b/pkgs/tools/backup/bacula/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, sqlite, zlib, acl, ncurses, openssl, readline}: +{stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline}: stdenv.mkDerivation rec { name = "bacula-5.2.13"; @@ -8,13 +8,23 @@ stdenv.mkDerivation rec { sha256 = "1n3sc0kd7r0afpyi708y3md0a24rbldnfcdz0syqj600pxcd9gm4"; }; - buildInputs = [ sqlite zlib acl ncurses openssl readline ]; + buildInputs = [ postgresql sqlite zlib acl ncurses openssl readline ]; - configureFlags = [ "--with-sqlite3=${sqlite}" ]; + configureFlags = [ + "--with-sqlite3=${sqlite}" + "--with-postgresql=${postgresql}" + ]; + + postInstall = '' + mkdir -p $out/bin + ln -s $out/sbin/* $out/bin + ''; meta = { description = "Enterprise ready, Network Backup Tool"; homepage = http://bacula.org/; license = "GPLv2"; + platforms = stdenv.lib.platforms.all; + maintainers = [ stdenv.lib.maintainers.iElectric ]; }; } |