{"id":18564263,"url":"https://github.com/notashelf/nutils","last_synced_at":"2025-04-10T04:31:38.215Z","repository":{"id":233078475,"uuid":"785951630","full_name":"NotAShelf/nutils","owner":"NotAShelf","description":"A collection of Nix utilities, but in a blazingly annoying language.","archived":false,"fork":false,"pushed_at":"2024-04-13T04:33:39.000Z","size":18,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T16:04:46.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotAShelf.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}},"created_at":"2024-04-13T01:53:31.000Z","updated_at":"2024-04-14T09:49:28.000Z","dependencies_parsed_at":"2024-04-19T05:00:19.520Z","dependency_job_id":null,"html_url":"https://github.com/NotAShelf/nutils","commit_stats":null,"previous_names":["notashelf/nutils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fnutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fnutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fnutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fnutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotAShelf","download_url":"https://codeload.github.com/NotAShelf/nutils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248157435,"owners_count":21057012,"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":[],"created_at":"2024-11-06T22:14:43.229Z","updated_at":"2025-04-10T04:31:37.946Z","avatar_url":"https://github.com/NotAShelf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nutils\n\n\u003e ~~Utils so good, they make you nut~~ A collection of utilities for the [Nix package manager](https://github.com/NixOS/nix)\n\n## Available Utilities\n\n### nixfetch [0.1.0]\n\nnixfetch fetches a file, adds it to the nix store and returns JSON data for the newly\nadded path: mainly the file path and the hash. It is ultimately a wrapper around\n`nix store prefetch-file`. The nix store is used to avoid storing duplicates\nof the same file.\n\n#### Usage\n\n```bash\n$ nixfetch https://raw.githubusercontent.com/NotAShelf/nutils/main/LICENSE # e.g.: try to fetch a path from Github\n{\"hash\":\"sha256-OXLcl0T2SZ8Pmy2/dmlvKuetivmyPd5m1q+Gyd+zaYY=\",\"storePath\":\"/nix/store/zgw1a0w4j9anca8kjmgizy1m5zc9c0k2-LICENSE\"}\n```\n\n### flakecheck [0.1.0] (WIP)\n\nflakecheck runs `nix flake check` with the `--no-build` argument and monitors the\noutput for file errors containing the message `is not valid`. If a broken path is\nfound, then attempts to repair the given path with `nix-store --repair-path`.\n\nThis is not a magic bullet. You should be concerned if your store produces broken\npaths, and investigate carefully.\n\n## Building\n\nYou know how to use Rust, yes?\n\nBuild the workspace you'd like to use. Nix package is a TODO because I don't really\nknow how to build a multi-workspace project with Nix.\n\n## Contributing\n\nDo you know how to use Rust? I don't. Make a pull request if you find one of my many mistakes. You may unlock the\ngolden shelf skin at 99 mistakes found.\n\nThe repository follows a very simple structure: each utility must be its own workspace. If you find yourself\nrepeating code, start abstracting or add a `commons` workspace.\n\n### Adding new utilities\n\nThis is a monorepo for utility wrappers around the nix package manager, focusing on the package manager itself\nrather than `nixos-rebuild` unlike the awesome [nh](https://github.com/viperml/nh) project. If you wish to add\nan utility, feel free to. Format your code with `rustfmt`, leave proper comments.\n\n## License\n\nAll workspaces in this repository are licensed under GPLv3 or above. See [LICENSE](LICENSE) for\ndetails and restrictions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotashelf%2Fnutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotashelf%2Fnutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotashelf%2Fnutils/lists"}