# How I use Nix in my Elm projects

**URL:** https://discourse.elm-lang.org/t/how-i-use-nix-in-my-elm-projects/9525
**Category:** Show and Tell
**Created:** [December 19, 2023, 11:25am UTC](https://discourse.elm-lang.org/t/how-i-use-nix-in-my-elm-projects/9525 "2023-12-19T11:25:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dwayne](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dwayne/32/5478_2.png) [@dwayne](https://discourse.elm-lang.org/u/dwayne)
#### Post date: [December 19, 2023, 11:25am UTC](https://discourse.elm-lang.org/t/how-i-use-nix-in-my-elm-projects/9525/1 "2023-12-19T11:25:32Z")

</div>

I wrote a short [post](https://dev.to/dwayne/how-i-use-nix-in-my-elm-projects-5h42) explaining how I’ve been using Nix in my Elm projects. It’s just to pique your curiosity and possibly make you go off exploring what Nix can offer you on your own.

---

<div class="post-metadata">

### Author: ![jerith](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/jerith/32/114_2.png) [@jerith](https://discourse.elm-lang.org/u/jerith)
#### Post date: [December 22, 2023, 7:24pm UTC](https://discourse.elm-lang.org/t/how-i-use-nix-in-my-elm-projects/9525/2 "2023-12-22T19:24:32Z")

</div>

[[repeated from slack](https://elmlang.slack.com/archives/C0K384K4Y/p1702984860788739) for posterity]

Cool stuff, thanks for sharing!

Folks might also be interested in the [nix expression for my photo album project](https://github.com/jerith666/elbum/blob/dev/src/client/default.nix), which runs `elm make`, `elm-review`, and `elm-test`.

In the past it even [applied patches](https://github.com/jerith666/elbum/commit/283abb0050d59bc685e79bc851130bdc1d08d640) to `elm/core`.

---

<div class="post-metadata">

### Author: ![jeslie0](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/jeslie0/32/5106_2.png) [@jeslie0](https://discourse.elm-lang.org/u/jeslie0)
#### Post date: [December 28, 2023, 5:26pm UTC](https://discourse.elm-lang.org/t/how-i-use-nix-in-my-elm-projects/9525/3 "2023-12-28T17:26:32Z")

</div>

Relatedly, I made some nix functions which build elm projects as nix derivations straight from the elm.json file - no need to commit binaries or update nix files when updating dependencies. It can be found here: [mkElmDerivation](https://github.com/jeslie0/mkElmDerivation).

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)
#### Post date: [January 7, 2024, 5:26pm UTC](https://discourse.elm-lang.org/t/how-i-use-nix-in-my-elm-projects/9525/4 "2024-01-07T17:26:59Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
