Unverified Commit f9e0bfec authored by Sizhe Zhao's avatar Sizhe Zhao Committed by GitHub
Browse files

browser-sync: init at 3.0.3 (#487195)

parents 534f7767 11ba0a36
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -91,8 +91,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.

- `duckstation` package has been removed, as it was requested by upstream and build source were changed to be incompatible with NixOS.
+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