fwupd: use substitute instead of sed
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
committed by
Gaetan Lepage
co-authored by
Gaétan Lepage
parent
6cf8d7a4e6
commit
38a08f9a49
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user