2015-11-30 01:35:05 +00:00
|
|
|
{ stdenv, ghc, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "multi-ghc-travis-${version}";
|
2017-07-25 17:50:17 +01:00
|
|
|
version = "git-2017-07-27";
|
2015-11-30 01:35:05 +00:00
|
|
|
|
|
|
|
buildInputs = [ ghc ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hvr";
|
|
|
|
repo = "multi-ghc-travis";
|
2017-07-25 17:50:17 +01:00
|
|
|
rev = "f21804164cf646d682d7da668a625cdbd8baf05a";
|
|
|
|
sha256 = "07l3qzlc2hl7g5wbgqh8ld8ynl004i6m7p903667gbhs7sw03nbl";
|
2015-11-30 01:35:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2017-05-19 08:24:46 +01:00
|
|
|
ghc -O --make make_travis_yml.hs -o $out/bin/make-travis-yml
|
|
|
|
ghc -O --make make_travis_yml_2.hs -o $out/bin/make-travis-yml-2
|
2015-11-30 01:35:05 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Generate .travis.yml for multiple ghc versions";
|
|
|
|
homepage = "https://github.com/hvr/multi-ghc-travis";
|
2017-05-19 08:24:46 +01:00
|
|
|
license = licenses.bsd3;
|
2017-06-09 08:23:04 +01:00
|
|
|
platforms = ghc.meta.platforms;
|
2017-07-20 08:15:03 +01:00
|
|
|
maintainers = with maintainers; [ jb55 peti ];
|
2015-11-30 01:35:05 +00:00
|
|
|
};
|
|
|
|
}
|