{"id":13722809,"url":"https://github.com/nix-community/go-nix","last_synced_at":"2025-04-04T09:09:37.136Z","repository":{"id":36975439,"uuid":"183637887","full_name":"nix-community/go-nix","owner":"nix-community","description":"Elements of Nix re-implemented as Go libraries [maintainer=@flokli]","archived":false,"fork":false,"pushed_at":"2024-10-17T11:44:14.000Z","size":2894,"stargazers_count":124,"open_issues_count":7,"forks_count":13,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-29T17:25:44.257Z","etag":null,"topics":["go","golang","nix"],"latest_commit_sha":null,"homepage":"https://matrix.to/#/#go-nix:matrix.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nix-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"nix-community"}},"created_at":"2019-04-26T13:56:37.000Z","updated_at":"2024-10-18T15:40:50.000Z","dependencies_parsed_at":"2023-09-23T10:44:11.306Z","dependency_job_id":"aa0cbaee-3db7-428c-8e78-6f7d1cdc71a8","html_url":"https://github.com/nix-community/go-nix","commit_stats":{"total_commits":320,"total_committers":11,"mean_commits":29.09090909090909,"dds":"0.38749999999999996","last_synced_commit":"1cfc79ecf30edcafe3b48ce995997b94ece5ca31"},"previous_names":["zimbatm/go-nix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nix-community%2Fgo-nix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nix-community%2Fgo-nix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nix-community%2Fgo-nix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nix-community%2Fgo-nix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nix-community","download_url":"https://codeload.github.com/nix-community/go-nix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246952582,"owners_count":20859866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","nix"],"created_at":"2024-08-03T01:01:33.231Z","updated_at":"2025-04-04T09:09:37.115Z","avatar_url":"https://github.com/nix-community.png","language":"Go","funding_links":["https://opencollective.com/nix-community"],"categories":["Go"],"sub_categories":[],"readme":"# go-nix - Nix experiments written in go\n\n_STATUS_: experimental\n\nThis repository holds a bunch of experiments written in Go.\n\n## `cmd/gonix`\n\nA command line entrypoint called `gonix`, currently implementing the nar\n{cat,dump-path,ls} commands.\n\nThey're not meant to be 100% compatible, but are documented in the `--help`\noutput.\n\n## `pkg/derivation`\n\nA parser for Nix `.drv` files.\nFunctions to calculate derivation paths and output hashes.\n\n## `pkg/derivation/store`\n\nA Structure to hold derivation graphs.\n\n## `pkg/nixhash`\n\nMethods to serialize and deserialize some of the hashes used in nix code and\n`.narinfo` files.\n\n## `pkg/nar`\n\nA Nix ARchive (NAR) file Reader and Writer, with an interface similar to\n`archive/tar` from the stdlib, as well as a `DumpPath` method, which\nwill assemble a NAR representation of a local file system path.\n\n## `pkg/nar/ls`\n\nA parser for .ls files (providing an index for .nar files)\n\n## `pkg/nar/narinfo`\n\nA parser and generator for `.narinfo` files.\n\n## `pkg/nixbase32`\n\nAn implementation of the slightly odd \"base32\" encoding that's used in Nix,\nproviding some of the functions in `encoding/base32.Encoding`.\n\n## `pkg/storepath`\n\nA parser and regexes for Nix Store Paths.\n\n## `pkg/storepath/references`\n\nA Nix Store path reference scanner.\n\n## `pkg/sqlite`\n\nA collection of interfaces and utilities for writing to and querying various `sqlite` databases that Nix uses.\n\n[sqlc]: https://github.com/sqlc-dev/sqlc\n\n## `pkg/sqlite/binary_cache_v6`\n\n[SQLC] generated code for querying the Nar Info Disk Cache, typically located at `$XDG_CACHE_HOME/nix/binary-cache-v6.sqlite`.\n\n## `pkg/sqlite/eval_cache_v5`\n\n[SQLC] generated code for querying an instance of the Eval Cache, typically located at `$XDG_CACHE_HOME/nix/eval-cache-v5/*.sqlite`.\n\n## `pkg/sqlite/fetcher_cache_v2`\n\n[SQLC] generated code for querying the fetcher cache, typically located in `$XDG_CACHE_HOME/nix/fetcher-cache-v2.sqlite`.\n\n## `pkg/sqlite/nix_v10`\n\n[SQLC] generated code for querying the main Nix database, typically located in `/nix/var/nix/db.sqlite`.\n\n## `pkg/wire`\n\nMethods to parse and produce fields used in the low-level Nix wire protocol.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnix-community%2Fgo-nix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnix-community%2Fgo-nix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnix-community%2Fgo-nix/lists"}