2015-11-30 01:35:05 +00:00
|
|
|
{ stdenv, ghc, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "multi-ghc-travis-${version}";
|
2017-07-20 08:15:03 +01:00
|
|
|
version = "git-2017-07-26";
|
2015-11-30 01:35:05 +00:00
|
|
|
|
|
|
|
buildInputs = [ ghc ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hvr";
|
|
|
|
repo = "multi-ghc-travis";
|
2017-07-20 08:15:03 +01:00
|
|
|
rev = "800980d76f7a74f3cdfd76b3dff351d52d2c84ee";
|
|
|
|
sha256 = "03y8b4iz5ly9vkjc551c1bxalg1vl4k2sic327s3vh00jmjgvhz6";
|
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
|
|
|
};
|
|
|
|
}
|