nixpkgs/pkgs/development/tools/haskell/multi-ghc-travis/default.nix
Peter Simons 769e14a422 multi-ghc-travis: update to latest git version and install both scripts
We're using the names 'make-travis-yml' and 'make-travis-yml-2' now, which
feels more in-line'ish with the Cabal file hvr is distributing.
2017-05-19 09:26:28 +02:00

29 lines
813 B
Nix

{ stdenv, ghc, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "multi-ghc-travis-${version}";
version = "git-2017-05-18";
buildInputs = [ ghc ];
src = fetchFromGitHub {
owner = "hvr";
repo = "multi-ghc-travis";
rev = "3e1b3847583020f0e83c97fcf4bcfb7c90b78259";
sha256 = "0hnwp9gsv2rnkxqiw4cg1vdi7wccajx0i9ryhw4lfr8nhkizbsww";
};
installPhase = ''
mkdir -p $out/bin
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
'';
meta = with stdenv.lib; {
description = "Generate .travis.yml for multiple ghc versions";
homepage = "https://github.com/hvr/multi-ghc-travis";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ jb55 ];
};
}