mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
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>
This commit is contained in:
45
pkgs/by-name/px/px0/package.nix
Normal file
45
pkgs/by-name/px/px0/package.nix
Normal file
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user