Skip to content

Nix derivations for Playwright browsers in various versions

Notifications You must be signed in to change notification settings

voidus/nix-playwright-browsers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright Browser Derivations for Nix

This repository contains Nix derivations for Playwright browsers in multiple versions. It allows you to use the specific browsers that Playwright needs, independent of your nixpkgs version.

Why Use This?

  • Flexibility: Upgrade Playwright independently from nixpkgs, don't be held back or forced to move in either way.
  • Compatibility: Maintain consistency with pinned Playwright versions in npm or Python dependencies.
  • Always Up-to-Date: I will try to keep up with playwright releases.

How to Use

  • As a recipe:
    browsers = callPackage nix-playwright-browsers.recipes.${system}.v1_47_0
  • As an overlay:
    let
        pkgs = import nipkgs {
            inherit system;
            overlays = [ nix-playwright-browsers.overlays.${system}.default];
        }
    in
    pkgs.playwright-browsers_v1_47_0
  • Use the packages directly:
    nix build github:voidus/nix-playwright-browsers#playwright-browsers_v1_47_0

Available Versions

Please run nix flake show github:voidus/nix-playwright-browsers to list the available outputs

Contributing

I'd love this to be a collaborative project. Feel free to jump in!

Get in Touch

Have questions or suggestions? Open an issue, I'd love to hear from you.

Dev Notes

The playwright definitions were generated by running pkgs/development/python-modules/playwright/update.sh in nixpkgs and copying over pkgs/development/web/playwright. As such, v1.47.0 works well probably, but others might not.

I'm not sure if this is the best approach, but I'll be using this in two of my projects so I guess we'll find out.

About

Nix derivations for Playwright browsers in various versions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages