diff --git a/pkgs/by-name/fl/flood/package.nix b/pkgs/by-name/fl/flood/package.nix index ada2a69e6947..7e8dd89694fb 100644 --- a/pkgs/by-name/fl/flood/package.nix +++ b/pkgs/by-name/fl/flood/package.nix @@ -2,30 +2,40 @@ , buildNpmPackage , fetchFromGitHub , nixosTests +, pnpm +, nix-update-script }: buildNpmPackage rec { pname = "flood"; - version = "4.8.2"; + version = "4.8.5"; src = fetchFromGitHub { owner = "jesec"; repo = pname; rev = "v${version}"; - hash = "sha256-Ejr0pmWIuYByzDS+iFTECO/aymzuJrJjaaW7HikNt2w="; + hash = "sha256-lm+vPo7V99OSUAVEvdiTNMlD/+iHGPIyPLc1WzO1aTU="; }; - npmDepsHash = "sha256-md76I7W5QQvfbOmk5ODssMtJAVOj8nvaJ2PakEZ8WUA="; + npmConfigHook = pnpm.configHook; + npmDeps = pnpmDeps; + pnpmDeps = pnpm.fetchDeps { + inherit pname version src; + hash = "sha256-NuU9O3bEboxmuEuk1WSUeZRNgVK5cwFiUAN3+7vACGw="; + }; - passthru.tests = { - inherit (nixosTests) flood; + passthru = { + tests = { + inherit (nixosTests) flood; + }; + updateScript = nix-update-script { }; }; meta = with lib; { description = "Modern web UI for various torrent clients with a Node.js backend and React frontend"; homepage = "https://flood.js.org"; license = licenses.gpl3Only; - maintainers = with maintainers; [ thiagokokada winter ]; + maintainers = with maintainers; [ thiagokokada winter ners ]; mainProgram = "flood"; }; }