Merge pull request #5 from serokell/balsoft/build-binary

Build binary by default
This commit is contained in:
Ivan Gromakovskii 2019-12-05 20:03:23 +03:00 committed by GitHub
commit f97ded8356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 17 deletions

3
.gitignore vendored
View File

@ -21,4 +21,5 @@ cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*
result*/
result
result-*

View File

@ -2,19 +2,21 @@ let
sources = import ./nix/sources.nix;
nixpkgs = import sources.nixpkgs (import sources."haskell.nix");
hn = nixpkgs.haskell-nix;
in (hn.stackProject {
src = hn.haskellLib.cleanGit { src = ./.; };
modules = [{
packages.crossref-verifier = {
# More failures during CI == Less failures in runtime!
postHaddock = ''[[ -z "$(ls -A dist/doc/html)" ]] && exit 1 || echo "haddock successfully generated documentation"'';
package.ghcOptions = "-Werror";
};
}];
cache = with sources; [{
name = "loot-prelude";
inherit (lootbox) sha256 rev;
url = "https://github.com/${lootbox.owner}/${lootbox.repo}.git";
subdir = "code/prelude";
}];
}).crossref-verifier
project = hn.stackProject {
src = hn.haskellLib.cleanGit { src = ./.; };
modules = [{
packages.crossref-verifier = {
# More failures during CI == Less failures in runtime!
postHaddock = ''
[[ -z "$(ls -A dist/doc/html)" ]] && exit 1 || echo "haddock successfully generated documentation"'';
package.ghcOptions = "-Werror";
};
}];
cache = with sources; [{
name = "loot-prelude";
inherit (lootbox) sha256 rev;
url = "https://github.com/${lootbox.owner}/${lootbox.repo}.git";
subdir = "code/prelude";
}];
};
in with project; [ crossref-verifier.components.exes crossref-verifier ]