biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / video / frigate / web.nix
blobcea410849ec8dfaa02f47c0f9f33a308307bd74a
1 { buildNpmPackage
2 , src
3 , version
4 }:
6 buildNpmPackage {
7   pname = "frigate-web";
8   inherit version src;
10   sourceRoot = "${src.name}/web";
12   postPatch = ''
13     substituteInPlace package.json \
14       --replace-fail "--base=/BASE_PATH/" ""
16     substituteInPlace \
17       src/views/system/StorageMetrics.tsx \
18       src/components/card/{AnimatedEvent,Export,Review}Card.tsx \
19       src/components/timeline/EventSegment.tsx \
20       src/pages/Exports.tsx \
21       src/components/player/PreviewThumbnailPlayer.tsx \
22       --replace-fail "/media/frigate" "/var/lib/frigate" \
24     substituteInPlace src/views/system/StorageMetrics.tsx \
25       --replace-fail "/tmp/cache" "/var/cache/frigate"
26   '';
28   npmDepsHash = "sha256-PLs3oCWQjK38eHgdQt2Qkj7YqkfanC8JnLMpzMjNfxU=";
30   installPhase = ''
31     cp -rv dist/ $out
32   '';