{"id":13688553,"url":"https://github.com/3noch/nix-bundle-exe","last_synced_at":"2026-03-01T12:02:08.077Z","repository":{"id":38415300,"uuid":"475600905","full_name":"3noch/nix-bundle-exe","owner":"3noch","description":"Simple Nix derivations to bundle executables","archived":false,"fork":false,"pushed_at":"2024-09-27T01:51:34.000Z","size":30,"stargazers_count":41,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T15:03:41.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/3noch.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-03-29T19:59:53.000Z","updated_at":"2025-03-16T14:32:31.000Z","dependencies_parsed_at":"2024-10-28T09:09:43.494Z","dependency_job_id":"84761aac-730a-490e-ac17-655408f32929","html_url":"https://github.com/3noch/nix-bundle-exe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/3noch/nix-bundle-exe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnix-bundle-exe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnix-bundle-exe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnix-bundle-exe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnix-bundle-exe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3noch","download_url":"https://codeload.github.com/3noch/nix-bundle-exe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnix-bundle-exe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29969243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T11:43:06.159Z","status":"ssl_error","status_checked_at":"2026-03-01T11:43:03.887Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-02T15:01:16.444Z","updated_at":"2026-03-01T12:02:08.055Z","avatar_url":"https://github.com/3noch.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# nix-bundle-exe\n\nThis is a simple [Nix](https://nixos.org/) derivation to bundle Mach-O (macOS) and ELF (Linux) executables into a relocatable directory structure. That is to say, given a Nix package containing executables, this derivation will produce a package with those same executables, but with all their shared libraries copied into a new directory structure and reconfigured to work without any dependency on Nix.\n\nIf you are able to build your executable with full static linking, that would be better than using this derivation. For cases where that is too difficult, you can use this.\n\nThis tool has a very similar goal to [nix-bundle](https://github.com/matthewbauer/nix-bundle) with some key differences:\n\n  1. `nix-bundle` works on arbitrary derivations and can bundle any resource, not just shared libraries. This tool only works on executables and their shared libraries.\n  2. `nix-bundle` does not work on macOS. This tool does.\n  3. `nix-bundle` requires target systems to have certain Linux kernel features. This tool requires Linux target systems to be POSIX only. macOS targets have no requirements.\n  4. `nix-bundle` has some large build-time dependencies which may make it hard to use in CI in some cases. This tool has no additional build-time dependencies.\n\nYou may also want to check out [shrinkrap](https://github.com/fzakaria/shrinkwrap).\n\n## Examples\n\nThis will make a bundle of `opencv` where all of its binaries can be run on a system where Nix is not installed.\n```shell\nnix-build -E 'with import \u003cnixpkgs\u003e {}; callPackage ./. {} opencv'\n```\n\nThis will bundle `gzip` only, and not any of its accompanying scripts:\n\n```shell\nnix-build -E 'with import \u003cnixpkgs\u003e {}; callPackage ./. {} \"${gzip}/bin/gzip\"'\n```\n\n(Avoiding the accompanying scripts makes the resulting closure extremely small and does not depend on the original `gzip` closure in any way.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Fnix-bundle-exe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3noch%2Fnix-bundle-exe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Fnix-bundle-exe/lists"}