Commit 38a08f9a authored by Ramses's avatar Ramses Committed by Gaetan Lepage
Browse files

fwupd: use substitute instead of sed

parent 6cf8d7a4
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -182,14 +182,17 @@ stdenv.mkDerivation (finalAttrs: {
    ./efi-app-path.patch
  ];

  postPatch = ''
  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;