{"id":13903263,"url":"https://github.com/linkdd/shipp","last_synced_at":"2025-09-04T12:41:02.174Z","repository":{"id":219178028,"uuid":"748380094","full_name":"linkdd/shipp","owner":"linkdd","description":"Deadly simple package manager","archived":false,"fork":false,"pushed_at":"2024-01-27T12:52:18.000Z","size":22,"stargazers_count":104,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T18:38:56.715Z","etag":null,"topics":["build-system","cpp","package-manager","rust"],"latest_commit_sha":null,"homepage":"https://david-delassus.medium.com/thats-it-i-m-making-my-own-c-package-manager-555eecbf7d2e?sk=0a6649fef2325de32ca8ad6f51aaefd5","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/linkdd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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":{"github":["linkdd"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-01-25T21:08:19.000Z","updated_at":"2025-03-25T11:35:43.000Z","dependencies_parsed_at":"2024-01-25T22:26:33.651Z","dependency_job_id":"b9ade1d8-2b2f-43d5-ac57-69536568482e","html_url":"https://github.com/linkdd/shipp","commit_stats":null,"previous_names":["linkdd/shipp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/linkdd/shipp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fshipp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fshipp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fshipp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fshipp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkdd","download_url":"https://codeload.github.com/linkdd/shipp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fshipp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273611462,"owners_count":25136972,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["build-system","cpp","package-manager","rust"],"created_at":"2024-08-06T22:01:57.888Z","updated_at":"2025-09-04T12:41:02.118Z","avatar_url":"https://github.com/linkdd.png","language":"Rust","funding_links":["https://github.com/sponsors/linkdd"],"categories":["rust"],"sub_categories":[],"readme":"# Shipp - Deadly simple package manager\n\nManaging dependencies yourself in a C/C++ project can be a pain. Conan and vcpkg\nmight be a solution, but as far as I know, those requires a registry.\n\nI just want to point to a git repository and say \"this is my dependency, build it\".\n\nThis is how **Shipp** was born. If you want to read more about it, I wrote an\narticle on my blog [here](https://david-delassus.medium.com/thats-it-i-m-making-my-own-c-package-manager-555eecbf7d2e?sk=0a6649fef2325de32ca8ad6f51aaefd5).\n\n## Installation\n\n```\n$ cargo install --path .\n```\n\nThen make sure `$HOME/.cargo/bin` is in your `$PATH`.\n\n## Usage\n\nCreate a package by adding a `shipp.json` file at the root of your Git\nrepository:\n\n```json\n{\n  \"name\": \"mypackage\",\n  \"version\": \"0.1.0\",\n  \"scripts\": {\n    \"build\": \"make all DESTDIR=$SHIPP_DIST_DIR\",\n    \"install\": \"make install DESTDIR=$SHIPP_DIST_DIR\"\n  },\n  \"dependencies\": [\n    {\n      \"name\": \"libfoo\",\n      \"url\": \"https://github.com/example/libfoo.git\",\n      \"version\": \"0.1.0\"\n    }\n  ]\n}\n```\n\n\u003e **NB:** Your dependencies need to be Shipp packages as well, with their own\n\u003e `shipp.json` file at the root of the repository.\n\nThen run the following commands:\n\n**To fetch dependencies (`git clone` or `git pull`) in `.shipp/deps/`:**\n\n```\n$ shipp deps.get\n```\n\n**To build dependencies and install them in `.shipp/dist/`:**\n\n```\n$ shipp deps.build\n```\n\n**To build the current project and install it in `.shipp/dist/`:**\n\n```\n$ shipp build\n```\n\n**To create a `tar.gz` archive of the `.shipp/dist/` folder:**\n\n```\n$ shipp dist\n```\n\n## Design\n\nWhen running `shipp deps.get`, Shipp will clone all your dependencies into the\n`.shipp/deps` folder. Then, recursively, it will read your dependencies's\n`shipp.json` file to pull the transitive dependencies into that same folder.\n\nAll your direct and transitive dependencies are therefore automatically vendored\nin your project (similar to `node_modules` with `npm`).\n\n\u003e **NB:** Your dependencies should also be a Shipp package (aka: have a\n\u003e `shipp.json` file at the root of their repository).\n\nThe command `shipp deps.build` will run the `build` command and the `install`\ncommand of your dependencies (in the correct order). Those commands rely on the\ndependencies's build system, without you needing to add too much plumbing.\n\nThe `build` command is in charge of building the package, and the `install`\ncommand is in charge of installing the built artifacts into the `.shipp/dist`\nfolder.\n\nThis folder should contain the following:\n\n - `include/`: where your C/C++ headers will be installed\n - `lib/`: where your static/shared libraries will be installed\n - `bin/`: where your executables will be installed\n - `share/` \u0026 ...: your resources and other files\n\nThis folder is where you should look for to configure the `-I include_dir` and\n`-L library_dir` compiler flags (or equivalent for your build system).\n\nBoth the `build` and `install` commands are given the following environment\nvariables:\n\n| Variable | Example value | Description |\n| --- | --- | --- |\n| `SHIPP_TARGET_ARCH` | `x86_64` | Current platform architecture |\n| `SHIPP_TARGET_FAMILY` | `unix` or `windows` | Current platform OS family |\n| `SHIPP_TARGET_OS` | `linux` | Current platform OS |\n| `SHIPP_DIST_DIR` | `/path/to/.shipp/dist` | Absolute path to the install directory |\n\nSee those pages for more information:\n\n - https://doc.rust-lang.org/std/env/consts/constant.ARCH.html\n - https://doc.rust-lang.org/std/env/consts/constant.FAMILY.html\n - https://doc.rust-lang.org/std/env/consts/constant.OS.html\n\nThe `shipp build` command works like `deps.build` but for your current project.\n\nFinally, the `shipp dist` command will archive the `.shipp/dist` folder into an\narchive named `myproject-version.tar.gz`, which you should be able to distribute.\n\n## License\n\nThis project is released under the terms of the [MIT License](./LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdd%2Fshipp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkdd%2Fshipp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdd%2Fshipp/lists"}