mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
250078ceba
Changelog: https://github.com/blakeblackshear/frigate/releases/tag/v0.13.0 https://github.com/blakeblackshear/frigate/releases/tag/v0.13.1 Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
27 lines
530 B
Nix
27 lines
530 B
Nix
{ buildNpmPackage
|
|
, src
|
|
, version
|
|
}:
|
|
|
|
buildNpmPackage {
|
|
pname = "frigate-web";
|
|
inherit version src;
|
|
|
|
sourceRoot = "${src.name}/web";
|
|
|
|
postPatch = ''
|
|
substituteInPlace package.json \
|
|
--replace-fail "--base=/BASE_PATH/" ""
|
|
|
|
substituteInPlace src/routes/Storage.jsx \
|
|
--replace-fail "/media/frigate" "/var/lib/frigate" \
|
|
--replace-fail "/tmp/cache" "/var/cache/frigate"
|
|
'';
|
|
|
|
npmDepsHash = "sha256-+36quezGArqIM9dM+UihwcIgmE3EVmJQThuicLgDW4A=";
|
|
|
|
installPhase = ''
|
|
cp -rv dist/ $out
|
|
'';
|
|
}
|