Skip to content

Lightpanda: the headless browser designed for AI and automation

update nixpkgs to 26.05

Muki Kiboigo148bb7d3b7c1
diff --git a/flake.lock b/flake.lock
index 01cb70674..816fcdf0e 100644
--- a/flake.lock
+++ b/flake.lock
@@ -8,11 +8,11 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
- "lastModified": 1778493576,
- "narHash": "sha256-/vvNyF8C2tNTkxtffGUQbcTJvf72cRw3qo8cyBh33pM=",
+ "lastModified": 1781694955,
+ "narHash": "sha256-tWhN69ITP44KnE027imGWrf1XgWbAqHLtXsbIMczfsQ=",
"owner": "nix-community",
"repo": "fenix",
- "rev": "5bf88a04d8678c7334f2f5072975f3b2cb0fe1ba",
+ "rev": "123d5d73ba5649fc9ca1051f1378ee86c751d1a4",
"type": "github"
},
"original": {
@@ -78,16 +78,16 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1778003029,
- "narHash": "sha256-q/nkKLDtHIyLjZpKhWk3cSK5IYsFqtMd6UtXF3ddjgA=",
+ "lastModified": 1781216227,
+ "narHash": "sha256-9mUW6gNwoN2SWc/l0fW4svPNOulXLl8ijqKyeSOGgJE=",
"owner": "nixos",
"repo": "nixpkgs",
- "rev": "0c88e1f2bdb93d5999019e99cb0e61e1fe2af4c5",
+ "rev": "a0374025a863d007d98e3297f6aa46cc3141c2f0",
"type": "github"
},
"original": {
"owner": "nixos",
- "ref": "nixos-25.11",
+ "ref": "nixos-26.05",
"repo": "nixpkgs",
"type": "github"
}
@@ -104,11 +104,11 @@
"rust-analyzer-src": {
"flake": false,
"locked": {
- "lastModified": 1778424672,
- "narHash": "sha256-v/CZ9tJT+ulSe3ZmjuG3lWABwOvITbT7EqF/2NAl3Hs=",
+ "lastModified": 1781624033,
+ "narHash": "sha256-xrkr//LaYgfxWNwvNQz5AgRhWIj5aEjVprwfkQzpZzw=",
"owner": "rust-lang",
"repo": "rust-analyzer",
- "rev": "e266f5cab8f6525d0bc2ddccc0006418c534b5e6",
+ "rev": "06070f3ad9824dca321f6407e2dcdd7952d33cd2",
"type": "github"
},
"original": {
@@ -158,11 +158,11 @@
"systems": "systems_2"
},
"locked": {
- "lastModified": 1778375309,
- "narHash": "sha256-3+5C2LDX1lmupM6ktG6i50BRvRnN32WLinpxqa2g+HQ=",
+ "lastModified": 1781745567,
+ "narHash": "sha256-vQsYIwQLVirBq/W4gTooArfSInOh/1cLs1LfId4SJ7o=",
"owner": "mitchellh",
"repo": "zig-overlay",
- "rev": "057bcab6a8e6a3a85e9293e150d35c63404e8fca",
+ "rev": "cb90e27d9cabf159f7dcb46d5eadd2d4c2a53a64",
"type": "github"
},
"original": {
diff --git a/flake.nix b/flake.nix
index f4c3b7f4d..b609df965 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,7 +2,7 @@
description = "headless browser designed for AI and automation";
inputs = {
- nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
zigPkgs.url = "github:mitchellh/zig-overlay";
zigPkgs.inputs.nixpkgs.follows = "nixpkgs";
@@ -78,111 +78,9 @@
];
};
- wptDocker =
- let
- demoRepo = pkgs.fetchFromGitHub {
- owner = "lightpanda-io";
- repo = "demo";
- rev = "6120b426dd3bb5d0b06512efe735f2e2778caa15";
- sha256 = "sha256-TaLi1uIpM+fUk8LFVnPOZM6rKbdHKmB2FcofvGHtcpM=";
- };
-
- wptRunner = pkgs.buildGoModule {
- name = "wptrunner";
- src = "${demoRepo}/wptrunner";
- vendorHash = "sha256-di6bylBVj5jDWCDNlZO0M4XFILHEdkGT6hP8ctxppgU=";
- };
-
- wptRepo = pkgs.fetchFromGitHub {
- owner = "lightpanda-io";
- repo = "wpt";
- rev = "8c4054c7d2662e5b695832c6a239a1e0ba2af86b";
- sha256 = "sha256-235E75oIQmYH4eyHRqCP3xXr2TRt1j2FRB6A2Iiy5Q8=";
- };
-
- entrypoint = pkgs.writeScript "entrypoint.sh" ''
- #!${pkgs.bash}/bin/bash
- set -e
-
-
- # setup hosts
- cd /wpt
- ./wpt make-hosts-file >> /etc/hosts
- ./wpt manifest
- ./wpt serve &
- WPT_PID=$!
-
- echo "Waiting for WPT server..."
- until curl -sf http://web-platform.test:8000/ > /dev/null 2>&1; do
- sleep 1
- done
- echo "WPT server ready"
-
- # start lightpanda
- /usr/local/bin/lightpanda serve --insecure-disable-tls-host-verification &
- LP_PID=$!
-
- # run the go runner
- ${wptRunner}/bin/wptrunner "$@" > /tmp/wptrunner.log 2>&1
-
- # cleanup
- kill $WPT_PID $LP_PID 2>/dev/null || true
-
- # now print the wptrunner results
- echo ""
- echo "=== WPT Results ==="
- cat /tmp/wptrunner.log
- '';
- in
- pkgs.dockerTools.buildImage {
- name = "wpt-server";
- tag = "latest";
-
- copyToRoot = pkgs.buildEnv {
- name = "image-root";
- paths = [
- pkgs.python3
- pkgs.bash
- pkgs.coreutils
- pkgs.git
- pkgs.curl
- ];
- };
-
- config = {
- Entrypoint = [ "${entrypoint}" ];
- WorkingDir = "/wpt";
- };
-
- extraCommands = ''
- mkdir -p usr/bin
- ln -s ${pkgs.coreutils}/bin/env usr/bin/env
- mkdir -p tmp
- mkdir -p wpt
- cp -r ${wptRepo}/. ./wpt
- chmod -R u+w ./wpt
- '';
- };
in
{
devShells.default = fhs.env;
-
- apps.wpt = {
- type = "app";
- program = toString (
- pkgs.writeScript "run-wpt" ''
- #!${pkgs.bash}/bin/bash
- set -e
-
- BINARY=$(realpath "''${LIGHTPANDA_BIN:-./zig-out/bin/lightpanda}")
- CONTAINER_ID=$(podman run --rm -d \
- -v "$BINARY:/usr/local/bin/lightpanda" \
- docker-archive:${wptDocker} "$@")
- trap "podman kill $CONTAINER_ID 2>/dev/null || true" EXIT INT TERM
- podman logs -f "$CONTAINER_ID"
- ''
- );
- };
}
);
}