diff --git a/Makefile b/Makefile index 7286e04..fef9529 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ -all: dist/index.html +all: dist + +dist: dist/index.html dist/index.html: $(shell find src -type f -name '*.elm') elm.json @mkdir -p dist diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..0af3289 --- /dev/null +++ b/default.nix @@ -0,0 +1,19 @@ +{ ... }: +let + sources = import nix/sources.nix; + nixpkgs = import sources.nixpkgs { }; +in with nixpkgs; +stdenv.mkDerivation { + name = "elo-anything"; + src = ./.; + + buildInputs = [ elmPackages.elm ]; + buildPhase = '' + env ELM_HOME=.elm make dist + ''; + + installPhase = '' + mkdir -p $out/share/ + mv dist $out/share/elo-anything + ''; +} diff --git a/registry.dat b/registry.dat new file mode 100644 index 0000000..b2a8be8 Binary files /dev/null and b/registry.dat differ