catalogs
Submit a build of a particular package
Create or update a build of a package
Path Parameters:
- catalog_name: The name of the catalog
- package_name: The name of the package Body Content:
- PackageBuild: The build info to submit
Returns:
- PackageBuildResponse
post/api/v1/catalog/catalogs/{catalog_name}/packages/{package_name}/builds
Path parameters
catalog_namestring required
Example:mycatalog
package_namestring required
Example:curl
Request body
Example request
{
"base_catalog_rev_count": 11000,
"base_catalog_rev_date": "2021-08-15T00:00:00Z",
"derivation": {
"broken": false,
"description": "A command line tool for transferring files with URL syntax",
"drv_path": "/nix/store/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-curl-8.5.0.drv",
"license": "curl",
"name": "curl-8.5.0",
"outputs": [
{
"name": "out",
"store_path": "/nix/store/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb-curl-8.5.0"
},
{
"name": "man",
"store_path": "/nix/store/cccccccccccccccccccccccccccccccc-curl-8.5.0-man"
}
],
"outputs_to_install": [
"out",
"man"
],
"pname": "curl",
"system": "x86_64-linux",
"unfree": false,
"version": "8.5.0"
},
"locked_base_catalog_url": "https://github.com/flox/nixpkgs?rev=99dc8785f6a0adac95f5e2ab05cc2e1bf666d172",
"rev": "99dc8785f6a0adac95f5e2ab05cc2e1bf666d172",
"rev_count": 12345,
"rev_date": "2021-09-01T00:00:00Z",
"url": "https://github.com/org/example"
}Response
The build already exists
PackageBuildResponse required