Skip to content

Commit

Permalink
Add hpc-coveralls fork
Browse files Browse the repository at this point in the history
- Add a fork of hpc-coveralls to iohk-nix that replaces
  stack-hpc-coveralls and allows us to stop using stack on our
  CI/coverage builds.
  • Loading branch information
sevanspowell committed Aug 12, 2020
1 parent 0de0af2 commit 8043d76
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
4 changes: 3 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ let
else zero;

# Development tools
inherit (haskell-nix-extra-packages) stack-hpc-coveralls;
inherit (haskell-nix-extra-packages) stack-hpc-coveralls hpc-coveralls;
hlint = upstreamedDeprecation "hlint" pkgsDefault.hlint;
openapi-spec-validator = upstreamedDeprecation "openapi-spec-validator" pkgsDefault.python37Packages.openapi-spec-validator;
inherit (import sources.cardano-repo-tool {inherit system;}) cardano-repo-tool;
Expand Down Expand Up @@ -134,6 +134,7 @@ let
haskellBuildUtils
stackNixRegenerate
stack-hpc-coveralls
hpc-coveralls
;
};

Expand Down Expand Up @@ -170,6 +171,7 @@ let

# packages
stack-hpc-coveralls
hpc-coveralls
hlint
openapi-spec-validator
cardano-repo-tool
Expand Down
1 change: 1 addition & 0 deletions overlays/haskell-nix-extra/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ pkgs: super: with pkgs; with lib; {
inherit pkgs;
};
stack-hpc-coveralls = super.haskellPackages.callPackage ./stack-hpc-coveralls.nix {};
hpc-coveralls = super.haskellPackages.callPackage ./hpc-coveralls.nix {};
}
31 changes: 31 additions & 0 deletions overlays/haskell-nix-extra/hpc-coveralls.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ mkDerivation, aeson, async, base, bytestring, Cabal, cmdargs
, containers, curl, directory, directory-tree, fetchgit, hpc, HUnit
, process, pureMD5, regex-posix, retry, safe, split, stdenv
, transformers
}:
mkDerivation {
pname = "hpc-coveralls";
version = "1.1.0";
src = fetchgit {
url = "https://github.com/sevanspowell/hpc-coveralls.git";
sha256 = "03g4x2k5wv5jhflfip4np4f8hi0s9z1d4g1x9xk1rccylwspb1jw";
rev = "2af403c89d089acb8fba1d830ce090c1a759d696";
fetchSubmodules = true;
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson base bytestring Cabal cmdargs containers curl directory
directory-tree hpc process pureMD5 retry safe split transformers
];
executableHaskellDepends = [
aeson async base bytestring Cabal cmdargs containers curl directory
directory-tree hpc process pureMD5 regex-posix retry safe split
transformers
];
testHaskellDepends = [ base HUnit ];
jailbreak = true;
homepage = "https://github.com/guillaume-nargeot/hpc-coveralls";
description = "Coveralls.io support for Haskell.";
license = stdenv.lib.licenses.bsd3;
}

0 comments on commit 8043d76

Please sign in to comment.