{"id":14968041,"url":"https://github.com/nix-community/patsh","last_synced_at":"2025-04-09T12:09:55.486Z","repository":{"id":64184185,"uuid":"570759282","full_name":"nix-community/patsh","owner":"nix-community","description":"A command-line tool for patching shell scripts inspired by resholve [maintainer=@figsoda]","archived":false,"fork":false,"pushed_at":"2024-05-16T11:25:23.000Z","size":261,"stargazers_count":49,"open_issues_count":9,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-29T16:03:43.326Z","etag":null,"topics":["bash","dependencies","dependency","nix","nixpkgs","patch","patchelf","rust","shell"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nix-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-11-26T03:13:01.000Z","updated_at":"2024-10-25T15:26:32.000Z","dependencies_parsed_at":"2023-10-11T01:29:08.523Z","dependency_job_id":"69994bbe-374f-464c-bf8f-297307f1b283","html_url":"https://github.com/nix-community/patsh","commit_stats":{"total_commits":158,"total_committers":2,"mean_commits":79.0,"dds":0.3481012658227848,"last_synced_commit":"65d3e558a6d2270e42f6b28f03092c11f24cbb20"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nix-community%2Fpatsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nix-community%2Fpatsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nix-community%2Fpatsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nix-community%2Fpatsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nix-community","download_url":"https://codeload.github.com/nix-community/patsh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675728,"owners_count":20977396,"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":["bash","dependencies","dependency","nix","nixpkgs","patch","patchelf","rust","shell"],"created_at":"2024-09-24T13:39:09.273Z","updated_at":"2025-04-09T12:09:55.467Z","avatar_url":"https://github.com/nix-community.png","language":"Rust","funding_links":["https://opencollective.com/nix-community"],"categories":["Command-Line Tools"],"sub_categories":[],"readme":"# patsh\n\n[![version](https://img.shields.io/crates/v/patsh?logo=rust\u0026style=flat-square)](https://crates.io/crates/patsh)\n[![deps](https://deps.rs/repo/github/nix-community/patsh/status.svg?style=flat-square\u0026compact=true)](https://deps.rs/repo/github/nix-community/patsh)\n[![license](https://img.shields.io/badge/license-MPL--2.0-blue?style=flat-square)](https://www.mozilla.org/en-US/MPL/2.0)\n[![ci](https://img.shields.io/github/actions/workflow/status/nix-community/patsh/ci.yml?label=ci\u0026logo=github-actions\u0026style=flat-square)](https://github.com/nix-community/patsh/actions?query=workflow:ci)\n\nA command-line tool for patching shell scripts inspired by [resholve](https://github.com/abathur/resholve)\n\n```sh\nnix run github:nix-community/patsh -- -f script.sh\n```\n\n## Usage\n\n```\nUsage: patsh [OPTIONS] \u003cINPUT\u003e [OUTPUT]\n\nArguments:\n  \u003cINPUT\u003e   the file to be patched\n  [OUTPUT]  output path of the patched file, defaults to the input path, however, --force is required to patch in place\n\nOptions:\n  -b, --bash \u003cCOMMAND\u003e    bash command used to list the built-in commands [default: bash]\n  -f, --force             remove existing output file if needed\n  -p, --path \u003cPATH\u003e       use something other than the PATH variable for path resolution\n  -s, --store-dir \u003cPATH\u003e  path to the nix store, e.g. `builtins.storeDir` [default: /nix/store]\n  -h, --help              Print help information\n  -V, --version           Print version information\n```\n\n## TODO\n\n- ansi-c quoting\n- resolving variables\n- diagnostics for unresolved commands\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnix-community%2Fpatsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnix-community%2Fpatsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnix-community%2Fpatsh/lists"}