mirror of
https://github.com/serokell/xrefcheck.git
synced 2024-10-26 15:35:29 +03:00
Merge pull request #5 from serokell/balsoft/build-binary
Build binary by default
This commit is contained in:
commit
f97ded8356
3
.gitignore
vendored
3
.gitignore
vendored
@ -21,4 +21,5 @@ cabal.project.local
|
|||||||
cabal.project.local~
|
cabal.project.local~
|
||||||
.HTF/
|
.HTF/
|
||||||
.ghc.environment.*
|
.ghc.environment.*
|
||||||
result*/
|
result
|
||||||
|
result-*
|
34
default.nix
34
default.nix
@ -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 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user