nixpkgs-suyu/pkgs/development/tools/haskell/multi-ghc-travis/default.nix

39 lines
1.1 KiB
Nix

{ mkDerivation, ansi-terminal, base, bytestring, Cabal, containers
, deepseq, Diff, directory, filepath, ShellCheck, stdenv, tasty
, tasty-golden, transformers, fetchFromGitHub, fetchpatch
}:
let
newShellCheck = fetchpatch {
url = https://github.com/haskell-CI/haskell-ci/pull/159.patch;
sha256 = "17qn099lvfiii5z3hg24idmg4sk6ph7m2k940fsxzhqrad8fkjmw";
};
in
mkDerivation {
pname = "haskell-ci";
version = "0";
src = fetchFromGitHub {
owner = "haskell-CI";
repo = "haskell-ci";
rev = "db63eb7f2eaa64b7b0e4759e98258fea2a27a424";
sha256 = "0ff55zafx7561s1yps7aw83ws4vcpc5cq9r6bbckaagvwwla0dcq";
};
patches = [ newShellCheck ];
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
base Cabal containers deepseq directory filepath ShellCheck
transformers
];
executableHaskellDepends = [ base ];
testHaskellDepends = [
ansi-terminal base bytestring Diff directory filepath tasty
tasty-golden transformers
];
homepage = "https://github.com/haskell-CI/haskell-ci";
description = "Script generator for Travis-CI";
license = stdenv.lib.licenses.bsd3;
}