2013-09-06 13:11:23 +02:00
|
|
|
{ cabal, Cabal, filepath, HTTP, HUnit, mtl, network, QuickCheck
|
|
|
|
, random, stm, testFramework, testFrameworkHunit
|
|
|
|
, testFrameworkQuickcheck2, time, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "cabal-install";
|
2013-10-02 20:00:44 +02:00
|
|
|
version = "1.18.0.2";
|
|
|
|
sha256 = "0ah9yzp486p3cvs9b7nid0jmf0a56fg65s3jx2r8lb84pi50d92c";
|
2013-09-06 13:11:23 +02:00
|
|
|
isLibrary = false;
|
|
|
|
isExecutable = true;
|
|
|
|
buildDepends = [
|
|
|
|
Cabal filepath HTTP mtl network random stm time zlib
|
|
|
|
];
|
|
|
|
testDepends = [
|
|
|
|
Cabal filepath HTTP HUnit mtl network QuickCheck stm testFramework
|
|
|
|
testFrameworkHunit testFrameworkQuickcheck2 time zlib
|
|
|
|
];
|
|
|
|
postInstall = ''
|
|
|
|
mkdir $out/etc
|
|
|
|
mv bash-completion $out/etc/bash_completion.d
|
|
|
|
'';
|
2013-12-03 22:04:21 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's|array .*,|array,|' cabal-install.cabal
|
|
|
|
'';
|
2013-09-06 13:11:23 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.haskell.org/cabal/";
|
|
|
|
description = "The command-line interface for Cabal and Hackage";
|
|
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = self.ghc.meta.platforms;
|
|
|
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
|
|
|
};
|
|
|
|
})
|