parent
22b0be5609
commit
5235b19045
@ -1,11 +1,11 @@ |
||||
{stdenv, lib, fetchurl}: |
||||
|
||||
{elmPackages, versionsDat}: |
||||
{elmPackages, registryDat, elmVersion}: |
||||
|
||||
let |
||||
makeDotElm = import ./makeDotElm.nix {inherit stdenv lib fetchurl versionsDat;}; |
||||
makeDotElm = import ./makeDotElm.nix {inherit stdenv lib fetchurl registryDat;}; |
||||
|
||||
in |
||||
'' |
||||
export ELM_HOME=`pwd`/.elm |
||||
'' + (makeDotElm "0.19.0" elmPackages) |
||||
'' + (makeDotElm elmVersion elmPackages) |
||||
|
@ -1,27 +1,27 @@ |
||||
{ mkDerivation, aeson, async, base, binary, bytestring, containers |
||||
, directory, filepath, hpack, optparse-applicative, safe-exceptions |
||||
, stdenv, text, fetchgit |
||||
{ mkDerivation, aeson, base, binary, bytestring, containers |
||||
, directory, fetchgit, filepath, ghc-prim, hpack |
||||
, optparse-applicative, stdenv, text, unliftio |
||||
, unordered-containers |
||||
}: |
||||
mkDerivation { |
||||
pname = "elmi-to-json"; |
||||
version = "0.19.4"; |
||||
version = "1.2.0"; |
||||
src = fetchgit { |
||||
url = "https://github.com/stoeffel/elmi-to-json.git"; |
||||
rev = "357ad96f05e4c68023b036f27f6f65c4377c7427"; |
||||
sha256 = "0vj9fdqgg2zd1nxpll6v02fk6bcyhx00xhp3s8sd7ycvirwsim9n"; |
||||
sha256 = "1kxai87h2g0749yq0fkxwk3xaavydraaivhnavbwr62q2hw4wrj7"; |
||||
rev = "af08ceafe742a252f1f1f3c229b0ce3b3e00084d"; |
||||
fetchSubmodules = true; |
||||
}; |
||||
isLibrary = true; |
||||
isExecutable = true; |
||||
libraryHaskellDepends = [ |
||||
aeson async base binary bytestring containers directory filepath |
||||
optparse-applicative safe-exceptions text |
||||
aeson base binary bytestring containers directory filepath ghc-prim |
||||
optparse-applicative text unliftio unordered-containers |
||||
]; |
||||
libraryToolDepends = [ hpack ]; |
||||
executableHaskellDepends = [ base ]; |
||||
testHaskellDepends = [ base ]; |
||||
preConfigure = "hpack"; |
||||
prePatch = "hpack"; |
||||
homepage = "https://github.com/stoeffel/elmi-to-json#readme"; |
||||
description = "Translates elmi binary files to JSON representation"; |
||||
license = stdenv.lib.licenses.bsd3; |
||||
maintainers = with stdenv.lib.maintainers; [ turbomack ]; |
||||
} |
||||
|
Binary file not shown.
@ -1,8 +1,9 @@ |
||||
#!/usr/bin/env nix-shell |
||||
#!nix-shell -p cabal2nix elm2nix -i bash ../../.. |
||||
|
||||
cabal2nix https://github.com/elm/compiler --revision d5cbc41aac23da463236bbc250933d037da4055a > packages/elm.nix |
||||
elm2nix snapshot > versions.dat |
||||
pushd "$(nix-build -A elmPackages.elm.src --no-out-link ../../../..)/ui/browser" |
||||
cabal2nix https://github.com/elm/compiler --revision c9aefb6230f5e0bda03205ab0499f6e4af924495 > packages/elm.nix |
||||
echo "need to manually copy registry.dat from an existing elm project" |
||||
#elm2nix snapshot > registry.dat |
||||
pushd "$(nix-build -A elmPackages.elm.src --no-out-link ../../../..)/reactor" |
||||
elm2nix convert > $OLDPWD/packages/elm-srcs.nix |
||||
popd |
||||
|
Binary file not shown.
Loading…
Reference in new issue