anchor.diff:  { stdenv, fetchFromGitHub, pkgconfig, nettools, gettext, libtool, flex
   , readline ? null, openssl ? null, python ? null, ncurses ? null
   , sqlite ? null, postgresql ? null, libmysql ? null, zlib ? null, lzo ? null
  -, acl ? null, glusterfs ? null, libceph ? null, libcap ? null
  +, jansson ? null, acl ? null, glusterfs ? null, libceph ? null, libcap ? null
   }:
   
   assert sqlite != null || postgresql != null || libmysql != null;
  
positive.code:     ++ optional (libmysql != null) "--with-mysql=${libmysql}"
      ++ optional (zlib != null) "--with-zlib=${zlib}"
      ++ optional (lzo != null) "--with-lzo=${lzo}"
      ++ optional (acl != null) "--enable-acl"
      ++ optional (glusterfs != null) "--with-glusterfs=${glusterfs}"
      ++ optional (libceph != null) "--with-cephfs=${libceph}";
  
    installFlags = [
      "sysconfdir=\${out}/etc"
      "working_dir=\${TMPDIR}"
      "log_dir=\${TMPDIR}"
      "sbindir=\${out}/bin"
  
negative.code: in
  stdenv.mkDerivation rec {
    name = "bareos-${version}";
    version = "15.2.1";
  
    src = fetchFromGitHub {
      owner = "bareos";
      repo = "bareos";
      rev = "Release/${version}";
      name = "${name}-src";
      sha256 = "01vnqahzjj598jjk4y7qzfnq415jh227v40sgkrdl4qcpn76spxi";
    };
  
    nativeBuildInputs = [ pkgconfig ];
    buildInputs = [
      nettools gettext readline openssl python flex ncurses sqlite postgresql
      libmysql zlib lzo jansson acl glusterfs libceph libcap
    ];
  
    postPatch = ''
  