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~ cabal.project.local~
.HTF/ .HTF/
.ghc.environment.* .ghc.environment.*
result*/ result
result-*

View File

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