Add lightpanda headless browser as system package #15

Open
ymrtech wants to merge 1 commit from feature/lightpanda-package into main
Owner

Summary

Add lightpanda, the headless browser designed for AI and automation, as a system package on hosts/giga/default.nix.

How it works

Lightpanda isn't in nixpkgs and builds with Zig (with many deps: v8, curl, boringssl, sqlite3, etc.). Building from source takes 10+ minutes due to V8 compilation, so this uses a stdenv.mkDerivation that downloads the official prebuilt binary from GitHub releases.

Package details

  • Derivation: pkgs.stdenv.mkDerivation
  • Source: https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-x86_64-linux
  • Hash: sha256-uaew+sXDkkxuaHgfzEGA5bXJHmEdw7WCr3qThdhaMqE=
  • Binary size: ~80MB ELF executable
  • Version: 1.0.0-nightly.8320+a0fba9ba

Verification

$ lightpanda version
1.0.0-nightly.8320+a0fba9ba

Files changed

  • flake.lock - Updated (lightpanda input was already present)
  • flake.nix - Updated (lightpanda input was already present)
  • hosts/giga/default.nix - Added derivation to environment.systemPackages
## Summary Add lightpanda, the headless browser designed for AI and automation, as a system package on hosts/giga/default.nix. ## How it works Lightpanda isn't in nixpkgs and builds with Zig (with many deps: v8, curl, boringssl, sqlite3, etc.). Building from source takes 10+ minutes due to V8 compilation, so this uses a `stdenv.mkDerivation` that downloads the official prebuilt binary from GitHub releases. ### Package details - **Derivation**: `pkgs.stdenv.mkDerivation` - **Source**: `https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-x86_64-linux` - **Hash**: `sha256-uaew+sXDkkxuaHgfzEGA5bXJHmEdw7WCr3qThdhaMqE=` - **Binary size**: ~80MB ELF executable - **Version**: `1.0.0-nightly.8320+a0fba9ba` ### Verification ```bash $ lightpanda version 1.0.0-nightly.8320+a0fba9ba ``` ## Files changed - `flake.lock` - Updated (lightpanda input was already present) - `flake.nix` - Updated (lightpanda input was already present) - `hosts/giga/default.nix` - Added derivation to `environment.systemPackages`
Add a stdenv.mkDerivation that downloads the official prebuilt binary
from GitHub releases. Lightpanda is not in nixpkgs and builds with Zig,
so using the prebuilt binary avoids the long V8 compilation time.

Binary: /nix/store/*/bin/lightpanda
Version: 1.0.0-nightly.8320+a0fba9ba
This pull request has changes conflicting with the target branch.
  • flake.lock
  • flake.nix
  • hosts/giga/default.nix
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/lightpanda-package:feature/lightpanda-package
git switch feature/lightpanda-package

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feature/lightpanda-package
git switch feature/lightpanda-package
git rebase main
git switch main
git merge --ff-only feature/lightpanda-package
git switch feature/lightpanda-package
git rebase main
git switch main
git merge --no-ff feature/lightpanda-package
git switch main
git merge --squash feature/lightpanda-package
git switch main
git merge --ff-only feature/lightpanda-package
git switch main
git merge feature/lightpanda-package
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ymrtech/nix-config!15
No description provided.