Skip to content

Commit

Permalink
nextcloud30Packages.apps.recognize: simplify tar extractions
Browse files Browse the repository at this point in the history
  • Loading branch information
beardhatcode committed Nov 23, 2024
1 parent e035b7b commit 20ddea2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkgs/servers/nextcloud/packages/apps/recognize.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ stdenv.mkDerivation rec {
unpackPhase = ''
# Merge the app and the models from github
tar -xzpf "${builtins.elemAt srcs 0}" recognize;
tar -xzpf "${builtins.elemAt srcs 1}" recognize-${version}/models;
mv recognize-${version}/models recognize
tar -xzpf "${builtins.elemAt srcs 1}" -C recognize --strip-components=1 recognize-${version}/models
# Place the tensorflow lib at the right place for building
cd recognize/node_modules/@tensorflow/tfjs-node/deps
tar -xzpf "${builtins.elemAt srcs 2}"
cd -
tar -xzpf "${builtins.elemAt srcs 2}" -C recognize/node_modules/@tensorflow/tfjs-node/deps
'';

patchPhase = ''
Expand Down

0 comments on commit 20ddea2

Please sign in to comment.