cabal-install: add old 1.18.x version for the benefit of ghc-mod users

Install "haskellngPackages.cabal-install_1_18_0_8" to run ghc-mod with
GHC 7.8.x. Resolves https://github.com/NixOS/nixpkgs/issues/7133.
This commit is contained in:
Peter Simons 2015-04-02 22:59:05 +02:00
parent 7cc31b6b49
commit 548dfdb832

View File

@ -27072,6 +27072,38 @@ self: {
license = stdenv.lib.licenses.agpl3;
}) {};
"cabal-install_1_18_0_8" = callPackage
({ mkDerivation, array, base, bytestring, Cabal, containers
, directory, filepath, HTTP, HUnit, mtl, network, network-uri
, pretty, process, QuickCheck, random, stm, test-framework
, test-framework-hunit, test-framework-quickcheck2, time, unix
, zlib
}:
mkDerivation {
pname = "cabal-install";
version = "1.18.0.8";
sha256 = "1yx7vgyi2hs934z4ln7d8m2yrsakidb551ib01l9hxnmc3jbskwi";
isLibrary = false;
isExecutable = true;
buildDepends = [
array base bytestring Cabal containers directory filepath HTTP mtl
network network-uri pretty process random stm time unix zlib
];
testDepends = [
array base bytestring Cabal containers directory filepath HTTP
HUnit mtl network network-uri pretty process QuickCheck stm
test-framework test-framework-hunit test-framework-quickcheck2 time
unix zlib
];
postInstall = ''
mkdir $out/etc
mv bash-completion $out/etc/bash_completion.d
'';
homepage = "http://www.haskell.org/cabal/";
description = "The command-line interface for Cabal and Hackage";
license = stdenv.lib.licenses.bsd3;
}) {};
"cabal-install" = callPackage
({ mkDerivation, array, base, bytestring, Cabal, containers
, directory, extensible-exceptions, filepath, HTTP, HUnit, mtl