nixpkgs/pkgs/development/compilers/elm/update.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
731 B
Bash
Raw Normal View History

#!/usr/bin/env nix-shell
#!nix-shell -p cabal2nix elm2nix -i bash ../../..
2024-01-06 13:31:32 +00:00
# We're building binaries from commit that npm installer is using since
# November 1st release called 0.19.1-6 in npm registry.
# These binaries are built with newer ghc version and also support Aarch64 for Linux and Darwin.
# Upstream git tag for 0.19.1 is still pointing to original commit from 2019.
2024-01-06 13:21:12 +00:00
cabal2nix https://github.com/elm/compiler --revision 2f6dd29258e880dbb7effd57a829a0470d8da48b > packages/elm.nix
2024-01-06 13:31:32 +00:00
2019-10-21 14:31:02 +00:00
echo "need to manually copy registry.dat from an existing elm project"
#elm2nix snapshot > registry.dat
2024-01-06 13:31:32 +00:00
2019-10-21 14:31:02 +00:00
pushd "$(nix-build -A elmPackages.elm.src --no-out-link ../../../..)/reactor"
elm2nix convert > $OLDPWD/packages/elm-srcs.nix
popd