From 34e29fbe99a364d7ecac082e9903a37ae9ba5378 Mon Sep 17 00:00:00 2001 From: Leonard Sheng Sheng Lee <305414+sheeeng@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:32:55 +0200 Subject: [PATCH] px0: init at 0.1.4 Package `px0`, a fast, ultra-light, remote-first IDE for instant code navigation and review in the browser. Built from source using `buildGoModule`; pure Go with no CGO or external dependencies. Signed-off-by: Leonard Sheng Sheng Lee <305414+sheeeng@users.noreply.github.com> --- pkgs/by-name/px/px0/package.nix | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/by-name/px/px0/package.nix diff --git a/pkgs/by-name/px/px0/package.nix b/pkgs/by-name/px/px0/package.nix new file mode 100644 index 000000000000..48f8959990c2 --- /dev/null +++ b/pkgs/by-name/px/px0/package.nix @@ -0,0 +1,45 @@ +{ + lib, + stdenv, + buildGoModule, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "px0"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "px0-ai"; + repo = "px0"; + tag = "v${finalAttrs.version}"; + hash = "sha256-1r000izgL1EFsBpIkyb8u6+RVhV58qHf+AshSYtINmY="; + }; + + __structuredAttrs = true; + strictDeps = true; + + vendorHash = "sha256-71+6I0u3en/Aw3PVMXx6dF+NQtCiE1T+kd7MENCKnlk="; + + checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ + "-skip" + "TestListenPortFallback|TestTelemetrySessionLifecycle" + ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "-version"; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Fast, ultra-light, remote-first IDE for code navigation and review in your browser"; + homepage = "https://github.com/px0-ai/px0"; + changelog = "https://github.com/px0-ai/px0/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ sheeeng ]; + mainProgram = "px0"; + }; +})