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.
This commit is contained in:
parent
2f22bbe150
commit
769e14a422
@ -2,30 +2,27 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "multi-ghc-travis-${version}";
|
name = "multi-ghc-travis-${version}";
|
||||||
version = "git-2016-10-23";
|
version = "git-2017-05-18";
|
||||||
|
|
||||||
buildInputs = [ ghc ];
|
buildInputs = [ ghc ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hvr";
|
owner = "hvr";
|
||||||
repo = "multi-ghc-travis";
|
repo = "multi-ghc-travis";
|
||||||
rev = "03dd35f3801d6af4224906d45e982a748de9960e";
|
rev = "3e1b3847583020f0e83c97fcf4bcfb7c90b78259";
|
||||||
sha256 = "1s08n8diis22cafych66zihdnd5q3dkv8m6i3a2s5g5f1phsk3mi";
|
sha256 = "0hnwp9gsv2rnkxqiw4cg1vdi7wccajx0i9ryhw4lfr8nhkizbsww";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
substituteInPlace make_travis_yml.hs --replace "make_travis_yml.hs" "multi-ghc-travis"
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ghc -O --make make_travis_yml_2.hs -o $out/bin/multi-ghc-travis
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Generate .travis.yml for multiple ghc versions";
|
description = "Generate .travis.yml for multiple ghc versions";
|
||||||
homepage = "https://github.com/hvr/multi-ghc-travis";
|
homepage = "https://github.com/hvr/multi-ghc-travis";
|
||||||
license = licenses.free;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ jb55 ];
|
maintainers = with maintainers; [ jb55 ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user