Skip to content

Commit

Permalink
borgbackup: use python3Packages instead of python3.pkgs to fix cross …
Browse files Browse the repository at this point in the history
…compilation

See also: Package sets within derivations (i.e. python3.pkgs) are not spliced
          NixOS#211340
  • Loading branch information
NickCao committed Aug 18, 2023
1 parent 93a52c1 commit 48d358d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkgs/tools/backup/borgbackup/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
, lz4
, openssh
, openssl
, python3
, python3Packages
, xxHash
, zstd
, installShellFiles
, nixosTests
, fetchPypi
}:

python3.pkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "borgbackup";
version = "1.2.4";
format = "pyproject";
Expand All @@ -30,7 +30,7 @@ python3.pkgs.buildPythonApplication rec {
--replace "0o4755" "0o0755"
'';

nativeBuildInputs = with python3.pkgs; [
nativeBuildInputs = with python3Packages; [
cython
setuptools-scm
pkgconfig
Expand All @@ -55,7 +55,7 @@ python3.pkgs.buildPythonApplication rec {
acl
];

propagatedBuildInputs = with python3.pkgs; [
propagatedBuildInputs = with python3Packages; [
msgpack
packaging
(if stdenv.isLinux then pyfuse3 else llfuse)
Expand All @@ -72,7 +72,7 @@ python3.pkgs.buildPythonApplication rec {
--zsh scripts/shell_completions/zsh/_borg
'';

nativeCheckInputs = with python3.pkgs; [
nativeCheckInputs = with python3Packages; [
e2fsprogs
py
python-dateutil
Expand Down

0 comments on commit 48d358d

Please sign in to comment.