Unverified Commit 11ba0a36 authored by wrvsrx's avatar wrvsrx
Browse files

browser-sync: init at 3.0.3

parent bb9f54bb
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -68,8 +68,6 @@

- `corepack_latest` has been removed, as Corepack is no longer distributed with Node.js.

- `nodePackages.browser-sync` has been removed, as it was unmaintained within nixpkgs.

- `spoof` has been removed, as there are many issues upstream with it working on modern OS versions, and it appears to be unmaintained.

- `nodePackages.coc-go` and `nodePackages.coc-tsserver`, along with their vim plugins, have been removed from nixpkgs due to being unmaintained.
+5620 −0

File added.

Preview size limit exceeded, changes collapsed.

+36 −0
Original line number Diff line number Diff line
{
  lib,
  nodejs_22,
  buildNpmPackage,
  fetchFromGitHub,
}:

buildNpmPackage (finalAttrs: {
  pname = "browser-sync";
  version = "3.0.3";

  src = fetchFromGitHub {
    owner = "BrowserSync";
    repo = "browser-sync";
    tag = "v${finalAttrs.version}";
    hash = "sha256-AQZfSdzAGsLnZf7q5YWy5v4W4Iv3f0s4eOV1tC7yhXw=";
  };

  postPatch = ''
    cp ${./package-lock.json} package-lock.json
  '';

  sourceRoot = "source/packages/browser-sync";

  nodejs = nodejs_22;

  npmDepsHash = "sha256-HvV7zaD8EZiXR7S7fZRT3zDpUxa3B9Gza9fl8zEurLA=";

  meta = {
    description = "Keep multiple browsers & devices in sync when building websites";
    homepage = "https://github.com/BrowserSync/browser-sync";
    maintainers = with lib.maintainers; [ wrvsrx ];
    license = lib.licenses.asl20;
    mainProgram = "browser-sync";
  };
})
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ mapAliases {
  bower = throw "bower was removed because it was deprecated"; # added 2025-09-17
  inherit (pkgs) bower2nix; # added 2024-08-23
  browserify = throw "browserify has been removed because it was unmaintained in nixpkgs"; # Added 2026-03-01
  browser-sync = throw "'browser-sync' has been removed because it was unmaintained in nixpkgs"; # Added 2026-01-26
  inherit (pkgs) browser-sync; # Added 2026-03-10
  inherit (pkgs) btc-rpc-explorer; # added 2023-08-17
  inherit (pkgs) carbon-now-cli; # added 2023-08-17
  inherit (pkgs) carto; # added 2023-08-17