at 22.05-pre 25 lines 1.3 kB view raw view rendered
1# Elm packages 2 3Mixtures of useful Elm lang tooling containing both Haskell and Node.js based utilities. 4 5## Upgrades 6 7Haskell parts of the ecosystem are using [cabal2nix](https://github.com/NixOS/cabal2nix). 8Please refer to [nix documentation](https://nixos.org/nixpkgs/manual/#how-to-create-nix-builds-for-your-own-private-haskell-packages) 9and [cabal2nix readme](https://github.com/NixOS/cabal2nix#readme) for more information. Elm-format [update scripts](https://github.com/avh4/elm-format/tree/master/package/nix) 10is part of its repository. 11 12Node dependencies are defined in [node-packages.json](node-packages.json). 13[Node2nix](https://github.com/svanderburg/node2nix) is used for generating nix expression 14from this file. Use [generate-node-packages.sh](generate-node-packages.sh) for updates of nix expressions. 15 16## Binwrap Patch 17 18Some node packages might use [binwrap](https://github.com/avh4/binwrap) typically for installing 19[elmi-to-json](https://github.com/stoeffel/elmi-to-json). Binwrap is not compatible with nix. 20To overcome issues with those packages apply [patch-binwrap.nix](patch-binwrap.nix) which essentially does 2 things. 21 221. It replaces binwrap scripts with noop shell scripts 232. It uses nix for installing the binaries to expected location in `node_modules` 24 25Example usage be found in `elm/default.nix`.