Skip to content

Commit

Permalink
basic default.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 25, 2020
1 parent 9ef2387 commit 9703291
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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
Expand Down
19 changes: 19 additions & 0 deletions 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
'';
}
Binary file added registry.dat
Binary file not shown.

0 comments on commit 9703291

Please sign in to comment.