From 8096d0bf377d88037d0b51d10ef2e0116370a96f Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sat, 5 Jul 2025 18:33:56 +0800 Subject: [PATCH] barman: specify path to file Resolves: https://github.com/NixOS/nixpkgs/issues/422635 --- pkgs/by-name/ba/barman/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/ba/barman/package.nix b/pkgs/by-name/ba/barman/package.nix index 22a7882acb61..1e2f1e8e06c4 100644 --- a/pkgs/by-name/ba/barman/package.nix +++ b/pkgs/by-name/ba/barman/package.nix @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, fetchpatch2, + file, python3Packages, rsync, versionCheckHook, @@ -30,6 +31,12 @@ python3Packages.buildPythonApplication rec { }) ]; + # https://github.com/EnterpriseDB/barman/blob/release/3.14.1/barman/encryption.py#L214 + postPatch = '' + substituteInPlace barman/encryption.py \ + --replace-fail '"file"' '"${lib.getExe file}"' + ''; + build-system = with python3Packages; [ distutils setuptools