Unverified Commit b91fc4fb authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

nextcloud31Packages.apps.recognize: cleanup, fix typos

parent bee08b36
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
  util-linux,
  ffmpeg,

  # Current derivation only suports linux-x86_64 (contributions welcome, without libTensorflow builtin webassembly can be used)
  # Current derivation only supports linux-x86_64 (contributions welcome, without libTensorflow builtin webassembly can be used)
  useLibTensorflow ? stdenv.isx86_64 && stdenv.isLinux,

  ncVersion,
@@ -37,9 +37,8 @@ let
  currentVersionInfo = latestVersionForNc.${ncVersion};
in
stdenv.mkDerivation rec {

  pname = "nextcloud-app-recognize";
  version = currentVersionInfo.version;
  inherit (currentVersionInfo) version;

  srcs =
    [
@@ -77,9 +76,9 @@ stdenv.mkDerivation rec {

  postPatch = ''
    # Make it clear we are not reading the node in settings
    sed -i "/'node_binary'/s:'""':'Nix Controled':" recognize/lib/Service/SettingsService.php
    sed -i "/'node_binary'/s:'""':'Nix Controlled':" recognize/lib/Service/SettingsService.php

    # Replace all occurences of node (and check that we actually remved them all)
    # Replace all occurrences of node (and check that we actually removed them all)
    test "$(grep "get[a-zA-Z]*('node_binary'" recognize/lib/**/*.php | wc -l)" -gt 0
    substituteInPlace recognize/lib/**/*.php \
      --replace-quiet "\$this->settingsService->getSetting('node_binary')" "'${lib.getExe nodejs}'" \