diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/backup/bacula/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/tools/backup/bacula/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/backup/bacula/default.nix b/infra/libkookie/nixpkgs/pkgs/tools/backup/bacula/default.nix new file mode 100644 index 000000000000..823fd000aee3 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/tools/backup/bacula/default.nix @@ -0,0 +1,46 @@ +{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline +, CoreFoundation, IOKit +}: + +stdenv.mkDerivation rec { + name = "bacula-9.6.6"; + + src = fetchurl { + url = "mirror://sourceforge/bacula/${name}.tar.gz"; + sha256 = "10c25igfvff09nz5ll8rxc46f659rnwimj1v9cdhr67lwdswk1k2"; + }; + + buildInputs = [ postgresql sqlite zlib ncurses openssl readline ] + ++ stdenv.lib.optionals stdenv.hostPlatform.isDarwin [ + CoreFoundation + IOKit + ] + # 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" + ] ++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "ac_cv_func_setpgrp_void=yes"; + + 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; + }; +} |