# Distributing compiled elixir packages?

**URL:** <https://forum.elixirforum.com/t/distributing-compiled-elixir-packages/51681>\
**Category:** Discussions\
**Tags:** package, hex-packages\
**Created:** [November 9, 2022, 5:09pm UTC](https://forum.elixirforum.com/t/distributing-compiled-elixir-packages/51681 "2022-11-09T17:09:55Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![hst337](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hst337](https://forum.elixirforum.com/u/hst337)\
**Post date:** [November 9, 2022, 10:25pm UTC](https://forum.elixirforum.com/t/distributing-compiled-elixir-packages/51681/7 "2022-11-09T22:25:51Z")

</div>

As I said, you can distribute compiled packages using package managers. Some package managers work on all popular platform, like [0install](https://0install.net/) which works on Mac, Linux and Windows or [Nix](https://nixos.org/) which works on Mac and Linux.

I personally use Nix to build and deploy packages or docker images. Nix is functional where every package is a pure function of it’s inputs and environment. And around this functional idea there is a a smart cache for built packages in a way cache works for pure functions.

Writing Nix packages for Mix applications is pretty straightforward with tools like `mix2nix` plus it is [officially supported](https://nixos.org/manual/nixpkgs/stable/#sec-beam) by nix

---

_[View the full topic](https://forum.elixirforum.com/t/distributing-compiled-elixir-packages/51681)._
