From 8e7dd685e95256403c9a2f89aef4a7fb1defe74b Mon Sep 17 00:00:00 2001 From: ajs124 Date: Thu, 31 Mar 2022 22:03:57 +0200 Subject: [PATCH] bareos: remove after being marked broken for over two years It was marked in commit e416a394644fe17244958ed9f7f5507a1e642b50 by Daniel Schaefer on 2019-09-14 (commited on 2019-09-14) --- pkgs/tools/backup/bareos/default.nix | 82 ---------------------------- pkgs/top-level/all-packages.nix | 2 - 2 files changed, 84 deletions(-) delete mode 100644 pkgs/tools/backup/bareos/default.nix diff --git a/pkgs/tools/backup/bareos/default.nix b/pkgs/tools/backup/bareos/default.nix deleted file mode 100644 index e2ccdb132c9b..000000000000 --- a/pkgs/tools/backup/bareos/default.nix +++ /dev/null @@ -1,82 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, nettools, gettext, flex -, readline ? null, openssl ? null, python2 ? null, ncurses ? null, rocksdb -, sqlite ? null, postgresql ? null, libmysqlclient ? null, zlib ? null, lzo ? null -, jansson ? null, acl ? null, glusterfs ? null, libceph ? null, libcap ? null -}: - -assert sqlite != null || postgresql != null || libmysqlclient != null; - -with lib; -let - withGlusterfs = "\${with_glusterfs_directory}"; -in -stdenv.mkDerivation rec { - pname = "bareos"; - version = "17.2.7"; - - src = fetchFromGitHub { - owner = "bareos"; - repo = "bareos"; - rev = "Release/${version}"; - name = "${pname}-${version}-src"; - sha256 = "1awf5i4mw2nfd7z0dmqnywapnx9nz6xwqv8rxp0y2mnrhzdpbrbz"; - }; - - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - nettools gettext readline openssl python2 flex ncurses sqlite postgresql - libmysqlclient zlib lzo jansson acl glusterfs libceph libcap rocksdb - ]; - - postPatch = '' - sed -i 's,\(-I${withGlusterfs}/include\),\1/glusterfs,' configure - ''; - - configureFlags = [ - "--sysconfdir=/etc" - "--exec-prefix=\${out}" - "--enable-lockmgr" - "--enable-dynamic-storage-backends" - "--with-basename=nixos" # For reproducible builds since it uses the hostname otherwise - "--with-hostname=nixos" # For reproducible builds since it uses the hostname otherwise - "--with-working-dir=/var/lib/bareos" - "--with-bsrdir=/var/lib/bareos" - "--with-logdir=/var/log/bareos" - "--with-pid-dir=/run/bareos" - "--with-subsys-dir=/run/bareos" - "--enable-ndmp" - "--enable-lmdb" - "--enable-batch-insert" - "--enable-dynamic-cats-backends" - "--enable-sql-pooling" - "--enable-scsi-crypto" - ] ++ optionals (readline != null) [ "--disable-conio" "--enable-readline" "--with-readline=${readline.dev}" ] - ++ optional (python2 != null) "--with-python=${python2}" - ++ optional (openssl != null) "--with-openssl=${openssl.dev}" - ++ optional (sqlite != null) "--with-sqlite3=${sqlite.dev}" - ++ optional (postgresql != null) "--with-postgresql=${postgresql}" - ++ optional (libmysqlclient != null) "--with-mysql=${libmysqlclient}" - ++ optional (zlib != null) "--with-zlib=${zlib.dev}" - ++ optional (lzo != null) "--with-lzo=${lzo}" - ++ optional (jansson != null) "--with-jansson=${jansson}" - ++ optional (acl != null) "--enable-acl" - ++ optional (glusterfs != null) "--with-glusterfs=${glusterfs}" - ++ optional (libceph != null) "--with-cephfs=${libceph}"; - - installFlags = [ - "sysconfdir=\${out}/etc" - "confdir=\${out}/etc/bareos" - "scriptdir=\${out}/etc/bareos" - "working_dir=\${TMPDIR}" - "log_dir=\${TMPDIR}" - "sbindir=\${out}/bin" - ]; - - meta = with lib; { - homepage = "http://www.bareos.org/"; - description = "A fork of the bacula project"; - license = licenses.agpl3; - platforms = platforms.unix; - broken = true; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1663e57fc99e..97e90b04b4c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4038,8 +4038,6 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreServices; }; - bareos = callPackage ../tools/backup/bareos { }; - bats = callPackage ../development/interpreters/bats { }; bbe = callPackage ../tools/misc/bbe { };