Skip to content

Commit

Permalink
lift elo-anything to an attrset
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Nov 4, 2020
1 parent 5231f8f commit 486e569
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions default.nix
Expand Up @@ -3,26 +3,27 @@ let
sources = import nix/sources.nix;
nixpkgs = import sources.nixpkgs { };
gitignore = import sources.gitignore { };
in with nixpkgs;
stdenv.mkDerivation {
name = "elo-anything";
src = gitignore.gitignoreSource ./.;
in with nixpkgs; {
elo-anything = stdenv.mkDerivation {
name = "elo-anything";
src = gitignore.gitignoreSource ./.;

buildInputs = [ elmPackages.elm elmPackages.elm-test ];
buildPhase = pkgs.elmPackages.fetchElmDeps {
elmPackages = import ./nix/elm-srcs.nix;
elmVersion = "0.19.1";
registryDat = ./nix/registry.dat;
};
buildInputs = [ elmPackages.elm elmPackages.elm-test ];
buildPhase = pkgs.elmPackages.fetchElmDeps {
elmPackages = import ./nix/elm-srcs.nix;
elmVersion = "0.19.1";
registryDat = ./nix/registry.dat;
};

doCheck = true;
checkPhase = ''
env ELM_HOME=.elm elm-test
'';
doCheck = true;
checkPhase = ''
env ELM_HOME=.elm elm-test
'';

installPhase = ''
make dist
mkdir -p $out/share/
mv dist $out/share/elo-anything
'';
installPhase = ''
make dist
mkdir -p $out/share/
mv dist $out/share/elo-anything
'';
};
}

0 comments on commit 486e569

Please sign in to comment.