Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 25 lines 1.5 kB view raw
1#!/usr/bin/env nix-shell 2#!nix-shell -p cabal2nix elm2nix -i bash ../../.. 3 4# Update all cabal packages. 5cabal2nix 'https://github.com/zwilias/elm-instrument' --revision '0.0.7' > packages/ghc8_10/elm-instrument/default.nix 6for subpath in 'avh4-lib' 'elm-format-lib' 'elm-format-markdown' 'elm-format-test-lib'; do 7 cabal2nix 'https://github.com/avh4/elm-format' --revision '0.8.7' \ 8 --subpath $subpath > packages/ghc9_2/elm-format/${subpath}.nix 9done 10cabal2nix 'https://github.com/avh4/elm-format' --revision '0.8.7' > packages/ghc9_2/elm-format/elm-format.nix 11cabal2nix 'https://github.com/stoeffel/elmi-to-json' --revision '1.3.0' > packages/ghc8_10/elmi-to-json/default.nix 12cabal2nix 'https://github.com/ekmett/ansi-wl-pprint' --revision 'v0.6.8.1' > packages/ghc9_6/ansi-wl-pprint/default.nix 13 14# We're building binaries from commit that npm installer is using since 15# November 1st release called 0.19.1-6 in npm registry. 16# These binaries are built with newer ghc version and also support Aarch64 for Linux and Darwin. 17# Upstream git tag for 0.19.1 is still pointing to original commit from 2019. 18cabal2nix https://github.com/elm/compiler --revision 2f6dd29258e880dbb7effd57a829a0470d8da48b > packages/ghc9_6/elm/default.nix 19 20echo "need to manually copy registry.dat from an existing elm project" 21#elm2nix snapshot > registry.dat 22 23pushd "$(nix-build -A elmPackages.elm.src --no-out-link ../../../..)/reactor" 24 elm2nix convert > $OLDPWD/packages/elm-srcs.nix 25popd