mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
aa696e8a63
got this error while cross compiling: checking whether setpgrp takes no argument... configure: error: cannot check setpgrp when cross compiling autoconf manual says: — Macro: AC_FUNC_SETPGRP If setpgrp takes no argument (the Posix version), define SETPGRP_VOID. Otherwise, it is the BSD version, which takes two process IDs as arguments. This macro does not check whether setpgrp exists at all; if you need to work in that situation, first call AC_CHECK_FUNC for setpgrp. The result of this macro is cached in the ac_cv_func_setpgrp_void variable. This macro is obsolescent, as current systems have a setpgrp whose signature conforms to Posix. New programs need not use this macro. So override it with caching variable.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "bacula-9.4.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/bacula/${name}.tar.gz";
|
|
sha256 = "1gi0zkkzh6a87xk4sm051hwz5bv4qc4kbl6hk40752knr817mqqg";
|
|
};
|
|
|
|
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"
|
|
] ++ 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;
|
|
};
|
|
}
|