nixpkgs/pkgs/tools/package-management/cabal-install/1.20.0.4.nix
Peter Simons c9a2bbdf65 cabal-install-1.20.0.4: patch the build manually instead of relying on jailbreak
jailbreak-cabal has trouble with that cabal file when built with older versions
of the Cabal library.
2014-12-19 07:45:11 +01:00

37 lines
1.1 KiB
Nix

# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, Cabal, filepath, HTTP, HUnit, mtl, network, networkUri
, QuickCheck, random, stm, testFramework, testFrameworkHunit
, testFrameworkQuickcheck2, time, zlib
}:
cabal.mkDerivation (self: {
pname = "cabal-install";
version = "1.20.0.4";
sha256 = "171lkr8jw5k3l58gn41jmbp47kf3b8iq9dds0v8qx7wxzlxy0kz1";
isLibrary = false;
isExecutable = true;
buildDepends = [
Cabal filepath HTTP mtl network networkUri random stm time zlib
];
testDepends = [
Cabal filepath HTTP HUnit mtl network QuickCheck stm testFramework
testFrameworkHunit testFrameworkQuickcheck2 time zlib
];
doCheck = false;
postInstall = ''
mkdir $out/etc
mv bash-completion $out/etc/bash_completion.d
'';
patchPhase = ''
sed -i -e 's|random .*< 1.1,|random,|' 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 = with self.stdenv.lib.maintainers; [ andres ];
};
})