xfsprogs: patch python shebangs for xfs_scrub_all and xfs_protofile

This commit is contained in:
SkohTV
2025-12-07 15:49:14 -05:00
parent bb5281a4c5
commit b40e85fd42
+7
View File
@@ -12,6 +12,7 @@
inih,
liburcu,
nixosTests,
python3,
}:
stdenv.mkDerivation rec {
@@ -23,6 +24,11 @@ stdenv.mkDerivation rec {
hash = "sha256-Ww9WqB9kEyYmb3Yq6KVjsp2Vzbzag7x5OPaM4SLx7dk=";
};
postPatch = ''
substituteInPlace {./scrub/xfs_scrub_all.py.in,./mkfs/xfs_protofile.py.in}\
--replace-fail '#!/usr/bin/python3' '#!/usr/bin/env python3'
'';
outputs = [
"bin"
"dev"
@@ -43,6 +49,7 @@ stdenv.mkDerivation rec {
icu
inih
liburcu
(python3.withPackages (ps: [ ps.dbus-python ]))
];
propagatedBuildInputs = [ libuuid ]; # Dev headers include <uuid/uuid.h>