Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bup: allow disabling web support; disable on aarch64-darwin due to #172397 #179924

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions pkgs/tools/backup/bup/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper
, perl, pandoc, python3Packages, git
, par2cmdline ? null, par2Support ? true
# Disabled on aarch64-darwin since tornado depends on pyOpenSSL which doesn't
# work on this platform. See:
# https://github.com/NixOS/nixpkgs/pull/172397
, webSupport ? !(stdenv.isDarwin && stdenv.isAarch64)
}:

assert par2Support -> par2cmdline != null;

assert webSupport -> python3Packages.tornado != null;

let version = "0.32"; in

with lib;
Expand All @@ -23,8 +29,9 @@ stdenv.mkDerivation {
buildInputs = [
git
(python3Packages.python.withPackages
(p: with p; [ setuptools tornado ]
++ lib.optionals (!stdenv.isDarwin) [ pyxattr pylibacl fuse ]))
(p: with p; [ setuptools ]
++ lib.optionals (!stdenv.isDarwin) [ pyxattr pylibacl fuse ]
++ lib.optionals (webSupport) [ tornado ]))
];
nativeBuildInputs = [ pandoc perl makeWrapper ];

Expand Down