{"id":18562461,"url":"https://github.com/replit/nix-editor","last_synced_at":"2025-08-02T21:12:26.990Z","repository":{"id":50227602,"uuid":"512109959","full_name":"replit/nix-editor","owner":"replit","description":"an automatic editor for replit.nix files","archived":false,"fork":false,"pushed_at":"2024-08-19T16:55:29.000Z","size":92,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-03-24T15:47:35.179Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replit.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-09T06:19:09.000Z","updated_at":"2024-10-10T09:37:48.000Z","dependencies_parsed_at":"2024-08-16T23:16:33.718Z","dependency_job_id":null,"html_url":"https://github.com/replit/nix-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fnix-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fnix-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fnix-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fnix-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replit","download_url":"https://codeload.github.com/replit/nix-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248151066,"owners_count":21056017,"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:09:48.801Z","updated_at":"2025-04-10T03:31:46.602Z","avatar_url":"https://github.com/replit.png","language":"Rust","readme":"This program edits Replit's replit.nix editor that is used by Goval to modify programatically interact with the file.\n\nIt parses the file into an AST and traverses the AST to get the relevant information to modify the file.\n\nrun `cargo run -- --help` to see what cli arguments are available.\n\n```\nnix-editor\n\nUSAGE:\n    nix-editor [OPTIONS]\n\nOPTIONS:\n    -a, --add \u003cADD\u003e              \n    -d, --dep-type \u003cDEP_TYPE\u003e    [default: regular] [possible values: regular, python]\n    -h, --human                  \n        --help                   Print help information\n    -p, --path \u003cPATH\u003e            \n    -r, --remove \u003cREMOVE\u003e        \n        --return-output          \n    -v, --verbose                \n    -V, --version                Print version information\n```\n\nYou can directly add/remove packages through the cli args like so `cargo run -- --add pkgs.cowsay` or `cargo run -- --remove pkgs.cowsay` or `cargo run -- --get`.\n\nYou can also run it without passing in any flags. If you do that, it reads json from stdin with the following structure:\n```\n{\"op\":\"add\", \"dep\": \"pkgs.cowsay\" }\n```\n\n# Contributing\n\n* Please run `nix fmt` to format the code in this repository before making a pull request.\n* `nix develop` will put you in a devshell with all the necessary development tools.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Fnix-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplit%2Fnix-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Fnix-editor/lists"}