fwupd: use substitute instead of sed

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
Ramses
2025-02-16 15:54:57 +01:00
committed by Gaetan Lepage
co-authored by Gaétan Lepage
parent 6cf8d7a4e6
commit 38a08f9a49
+11 -8
View File
@@ -182,15 +182,18 @@ stdenv.mkDerivation (finalAttrs: {
./efi-app-path.patch
];
postPatch = ''
patchShebangs \
contrib/generate-version-script.py \
contrib/generate-man.py \
po/test-deps
postPatch =
''
patchShebangs \
contrib/generate-version-script.py \
contrib/generate-man.py \
po/test-deps
''
# in nixos test tries to chmod 0777 $out/share/installed-tests/fwupd/tests/redfish.conf
sed -i "s/get_option('tests')/false/" plugins/redfish/meson.build
'';
+ ''
substituteInPlace plugins/redfish/meson.build \
--replace-fail "get_option('tests')" "false"
'';
strictDeps = true;