34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ cabal, Cabal, filepath, HTTP, HUnit, mtl, network, QuickCheck
|
|
, random, stm, testFramework, testFrameworkHunit
|
|
, testFrameworkQuickcheck2, time, zlib
|
|
}:
|
|
|
|
cabal.mkDerivation (self: {
|
|
pname = "cabal-install";
|
|
version = "1.18.0.2";
|
|
sha256 = "0ah9yzp486p3cvs9b7nid0jmf0a56fg65s3jx2r8lb84pi50d92c";
|
|
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
|
|
'';
|
|
patchPhase = ''
|
|
sed -i -e 's|array .*,|array,|' cabal-install.cabal
|
|
'';
|
|
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 ];
|
|
};
|
|
})
|