cabal-install: version 3.x is out officially
This commit is contained in:
parent
0fc727c3e1
commit
83bc9776ca
@ -32,9 +32,6 @@ self: super: {
|
|||||||
# compiled on Linux. We provide the name to avoid evaluation errors.
|
# compiled on Linux. We provide the name to avoid evaluation errors.
|
||||||
unbuildable = throw "package depends on meta package 'unbuildable'";
|
unbuildable = throw "package depends on meta package 'unbuildable'";
|
||||||
|
|
||||||
# Use the latest version of the Cabal library.
|
|
||||||
cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_2_4_1_0; });
|
|
||||||
|
|
||||||
# The test suite depends on old versions of tasty and QuickCheck.
|
# The test suite depends on old versions of tasty and QuickCheck.
|
||||||
hackage-security = dontCheck super.hackage-security;
|
hackage-security = dontCheck super.hackage-security;
|
||||||
|
|
||||||
|
@ -41,10 +41,6 @@ self: super: {
|
|||||||
unix = null;
|
unix = null;
|
||||||
xhtml = null;
|
xhtml = null;
|
||||||
|
|
||||||
# Use the cabal-install 3.0.0.0 beta release.
|
|
||||||
cabal-install = self.cabal-install-3;
|
|
||||||
Cabal_3_0_0_0 = null; # Our compiler has this already.
|
|
||||||
|
|
||||||
# Ignore overly restrictive upper version bounds.
|
# Ignore overly restrictive upper version bounds.
|
||||||
async = doJailbreak super.async;
|
async = doJailbreak super.async;
|
||||||
ChasingBottoms = doJailbreak super.ChasingBottoms;
|
ChasingBottoms = doJailbreak super.ChasingBottoms;
|
||||||
|
@ -13,43 +13,4 @@ self: super: {
|
|||||||
# https://github.com/channable/vaultenv/issues/1
|
# https://github.com/channable/vaultenv/issues/1
|
||||||
vaultenv = self.callPackage ../tools/haskell/vaultenv { };
|
vaultenv = self.callPackage ../tools/haskell/vaultenv { };
|
||||||
|
|
||||||
cabal-install-3 = (self.callPackage
|
|
||||||
({ mkDerivation, array, async, base, base16-bytestring, binary
|
|
||||||
, bytestring, Cabal, containers, cryptohash-sha256, deepseq
|
|
||||||
, directory, echo, edit-distance, filepath, hackage-security
|
|
||||||
, hashable, HTTP, mtl, network, network-uri, parsec, pretty
|
|
||||||
, process, random, resolv, stdenv, stm, tar, text, time, unix, zlib
|
|
||||||
, fetchFromGitHub
|
|
||||||
}:
|
|
||||||
mkDerivation {
|
|
||||||
pname = "cabal-install";
|
|
||||||
version = "3.0.0.0";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "haskell";
|
|
||||||
repo = "cabal";
|
|
||||||
rev = "b0e52fa173573705e861b129d9675e59de891e46";
|
|
||||||
sha256 = "1fbph6crsn9ji8ps1k8dsxvgqn38rp4ffvv6nia1y7rbrdv90ass";
|
|
||||||
};
|
|
||||||
postUnpack = "sourceRoot+=/cabal-install";
|
|
||||||
isLibrary = false;
|
|
||||||
isExecutable = true;
|
|
||||||
setupHaskellDepends = [ base Cabal filepath process ];
|
|
||||||
executableHaskellDepends = [
|
|
||||||
array async base base16-bytestring binary bytestring Cabal
|
|
||||||
containers cryptohash-sha256 deepseq directory echo edit-distance
|
|
||||||
filepath hackage-security hashable HTTP mtl network network-uri
|
|
||||||
parsec pretty process random resolv stm tar text time unix zlib
|
|
||||||
];
|
|
||||||
doCheck = false;
|
|
||||||
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;
|
|
||||||
}) {}).overrideScope (self: super: {
|
|
||||||
Cabal = self.Cabal_3_0_0_0;
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user