Get a Package
GET/pkg
Get information about a specific package in Nixpkgs. This endpoint returns a JSON object that contains information about the package, including a list of releases, platforms, and outputs.
You should use this endpoint if you know the name of the package you want to look up. If you need to search for packages, use /v2/search
. If you only need the latest version of a package, use /v2/resolve
.
Request
Query Parameters
The name of the package you want to look up. Must be a valid Nixpkgs package name.
Responses
- 200
- 400
- 404
Ok
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
Array [
]
]
]
The name of the package in Nixhub/Devbox
A short description of the package
The URL to the package's project homepage
The software license of the package
releases
object[]
A list of Releases for the package.
The version string of the release. This string, combined with a package name, points to a specific version of a package
The last time this release was updated in Nixpkg.
platforms
object[]
A list of platforms this release is available on.
The chip architecture of the platform. This will be one of arm64
or x86-64
.
The operating system of the platform. This will be one of macOS
or Linux
.
The full Nix compatible name of the system. This will be one of aarch64-darwin
, aarch64-linux
, x86_64-darwin
, or x86_64-linux
.
The attribute path to the package in the Nixpkgs. This can be used to install the package with Nix or Devbox.
The hash of the Nixpkgs commit that this package was last updated in.
The date this package was last updated in Nixpkgs.
outputs
object[]
A list of Outputs (e.g., out
, lib
, dev
) that are available for the package on this platform.
The name of the output (e.g., out
, lib
, dev
)
The unique path to the output in the Nix store.
Whether this output is the default output for the package
The path to the packages NAR (Nix Archive) file. This file contains the package's build artifacts.
A summary string that represents the platforms the release can be installed on.
A summary string of the outputs (e.g., out
, lib
, dev
) that are available for the release
{
"name": "string",
"summary": "string",
"homepage_url": "string",
"license": "string",
"releases": [
{
"version": "string",
"last_updated": "string",
"platforms": [
{
"arch": "string",
"os": "string",
"systems": "string",
"attribute_path": "string",
"commit_hash": "string",
"date": "string",
"outputs": [
{
"name": "string",
"path": "string",
"default": true,
"nar": "string"
}
]
}
],
"platforms_summary": "string",
"outputs_summary": "string"
}
]
}
Bad Request: empty package name (set a ?name=<pkg> query parameter)
Not Found