{"id":18841908,"url":"https://github.com/diskuv/dkml-component-unixutils","last_synced_at":"2026-01-30T15:30:13.499Z","repository":{"id":52084596,"uuid":"464581088","full_name":"diskuv/dkml-component-unixutils","owner":"diskuv","description":"unixutils are Unix utilities available to installers on all platforms including Windows","archived":false,"fork":false,"pushed_at":"2024-08-15T15:42:50.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T10:49:31.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/diskuv.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}},"created_at":"2022-02-28T17:33:47.000Z","updated_at":"2022-03-05T23:58:00.000Z","dependencies_parsed_at":"2024-11-08T02:53:18.486Z","dependency_job_id":"98a58e0c-7eb5-4379-b0f3-c06ba84b8580","html_url":"https://github.com/diskuv/dkml-component-unixutils","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-component-unixutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-component-unixutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-component-unixutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-component-unixutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diskuv","download_url":"https://codeload.github.com/diskuv/dkml-component-unixutils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239780120,"owners_count":19695734,"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-08T02:53:01.461Z","updated_at":"2026-01-30T15:30:13.406Z","avatar_url":"https://github.com/diskuv.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unixutils 0.1.0\n\nThe unixutils components provides common Unix utilities to all DKML\ninstallable platforms, including Windows.\n\nThese components can be used with [dkml-install-api](https://diskuv.github.io/dkml-install-api/index.html)\nto generate installers.\n\nMSYS2 provides the Windows environment. When building with MSYS2 or with\nDiskuv OCaml, you will need to first install pkg-config so that the OCaml\npackage ``conf-pkg-config``, a dependency of ``digestif``, can be built:\n\n```bash\npacman -S mingw-w64-clang-x86_64-pkg-config\n```\n\n## Components\n\n### network-unixutils\n\nNetwork installation of Unix utilities. Pick this or `offline-unixutils`.\n\n### offline-unixutils\n\nOffline installation of Unix utilities. Pick this or `network-unixutils`.\n\n### staging-unixutils\n\nInternal shared bytecode between `network-unixutils` and `offline-unixutils`.\nYou should never need to directly rely on this component.\n\n## Utilities\n\nOn Windows an MSYS2 installation will be available\nat `%{prefix}%/tools/MSYS2`. However you should rely on the utility\npaths documented below so your installation can work\non non-Windows/non-MSYS2 systems.\n\n### sh\n\n\u003e `%{prefix}%/tools/unixutils/bin/sh`\n\nOn Windows the `sh.exe` is MSYS2's dash.exe. You will not\nneed to modify the PATH to run `sh.exe` since all shared\nlibrary dependencies like `msys-2.0.dll` will be present\nalongside `sh.exe`.\n\nOn Unix and macOS the `sh` is a symlink to `/bin/dash` if Dash\nis available, or `/bin/sh` if not.\n\n## Testing\n\nIn PowerShell on Windows, to mimic [dkml_component_offline_unixutils.ml](src/buildtime_installer/dkml_component_offline_unixutils.ml):\n\n```powershell\nopam install .\nif (!(Test-Path _build\\tmp)) { New-Item -ItemType Directory _build\\tmp }\nif (Test-Path _build\\tools) { Remove-Item _build\\tools -Force -Recurse }\nif (Test-Path _build\\tools32) { Remove-Item _build\\tools32 -Force -Recurse }\n\n\u0026 \"$(opam var dkml-component-staging-unixutils:share)\\staging-files\\generic\\windows_install.bc\" `\n    --tmp-dir=_build/tmp `\n    --target-msys2-dir=$PWD\\_build\\tools\\MSYS2 `\n    --target-sh=_build/tools/unixutils/bin/sh.exe `\n    --msys2-base-exe=\"$(opam var dkml-component-offline-unixutils:share)\\staging-files\\windows_x86_64\\bin\\msys2-base.sfx.exe\"\n\n\u0026 \"$(opam var dkml-component-staging-unixutils:share)\\staging-files\\generic\\windows_install.bc\" `\n    --tmp-dir=_build/tmp `\n    --target-msys2-dir=$PWD\\_build\\tools32\\MSYS2 `\n    --target-sh=_build/tools32/unixutils/bin/sh.exe `\n    --msys2-base-exe=\"$(opam var dkml-component-offline-unixutils:share)\\staging-files\\windows_x86\\bin\\msys2-base.sfx.exe\" `\n    --32-bit\n```\n\nThe results will be in `_build/tools`. For example, the POSIX shell can be run with:\n\n```powershell\n\u0026 .\\_build\\tools\\unixutils\\bin\\sh.exe\n\u0026 .\\_build\\tools32\\unixutils\\bin\\sh.exe\n```\n\n## Contributing\n\nSee [the Contributors section of dkml-install-api](https://github.com/diskuv/dkml-install-api/blob/main/contributors/README.md).\n\n## Status\n\n[![Syntax check](https://github.com/diskuv/dkml-component-unixutils/actions/workflows/syntax.yml/badge.svg)](https://github.com/diskuv/dkml-component-unixutils/actions/workflows/syntax.yml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiskuv%2Fdkml-component-unixutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiskuv%2Fdkml-component-unixutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiskuv%2Fdkml-component-unixutils/lists"}