1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/haskell/multi-ghc-travis/default.nix
2017-06-09 09:23:36 +02:00

30 lines
818 B
Nix

{ stdenv, ghc, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "multi-ghc-travis-${version}";
version = "git-2017-05-24";
buildInputs = [ ghc ];
src = fetchFromGitHub {
owner = "hvr";
repo = "multi-ghc-travis";
rev = "c1dcbcbcd3eadcc63adeac65d63497885b422a44";
sha256 = "12xss8wgsqs2fghrfl4h6g5wli6wn274zmdsq5zdcib2m7da5yw2";
};
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 = ghc.meta.platforms;
maintainers = with maintainers; [ jb55 ];
};
}