xfsprogs: patch python shebangs for xfs_scrub_all and xfs_protofile
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user