| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Fri, 16 Jan 2026 23:36:50 GMT
X-Served-By: cache-dfw-kdfw8210056-DFW, cache-bom-vanm7210072-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768606611.644797,VS0,VE335
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
elm2nix: Turn your Elm project into buildable Nix project
Why is mkDerivation inlined into
elm2nix: Turn your Elm project into buildable Nix project
Downloads
- elm2nix-0.5.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0, 0.1.1, 0.1.2, 0.2, 0.2.1, 0.3.0, 0.3.1, 0.4.0, 0.5.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson, async, base (>=4.7 && <5), binary, bytestring, containers, elm2nix, here, optparse-applicative, prettyprinter, process, text, transformers, unordered-containers [details] |
| License | BSD-3-Clause |
| Copyright | 2017-2022 Domen Kozar |
| Author | Domen Kozar |
| Maintainer | domen@dev.si |
| Uploaded | by domenkozar at 2025-09-09T11:32:46Z |
| Home page | https://github.com/cachix/elm2nix#readme |
| Bug tracker | https://github.com/cachix/elm2nix/issues |
| Source repo | head: git clone https://github.com/cachix/elm2nix |
| Distributions | LTSHaskell:0.4.0, NixOS:0.4.0, Stackage:0.5.0 |
| Executables | elm2nix |
| Downloads | 2496 total (34 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2025-09-09 [all 1 reports] |
Readme for elm2nix-0.5.0
[back to package description]elm2nix
Convert an Elm project into Nix expressions.
It consists of multiple commands:
elm2nix convert: Givenelm.jsonin current directory, all dependencies are parsed and their sha256sum calculatedelm2nix snapshot: Reads packages fromelm.jsonand writes them to binary cache fileregistry.datused by elm-compiler.elm2nix init: Generatesdefault.nixthat glues everything together
Assumptions
Supports Elm 0.19.1
Installation
It's already included in devenv when using Elm:
{
langauges.elm.enable = true;
tasks = {
"frontend:elm2nix" = {
exec = "cd frontend && elm2nix convert > elm-srcs.nix && elm2nix snapshot";
execIfModified = [ "frontend/elm.json" ];
before = [ "devenv:enterShell" ];
};
};
}
Running tests (as per CI)
$ ./scripts/tests.sh
FAQ
Why is mkDerivation inlined into default.nix?
As it's considered experimental, it's generated for now. Might change in the future.
How do I use elm2nix with ParcelJS and Yarn?
Instead of running elm2nix init, create a default.nix with the following derivation:
https://github.com/cachix/elm2nix/issues/49#issuecomment-1696082884