Merge pull request #2336 from jwiegley/cabal
Add expression for cabal-install 1.20.0.0
This commit is contained in:
commit
cb82334421
3 changed files with 60 additions and 0 deletions
26
pkgs/development/libraries/haskell/Cabal/1.20.0.0.nix
Normal file
26
pkgs/development/libraries/haskell/Cabal/1.20.0.0.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ cabal, deepseq, extensibleExceptions, filepath, HUnit, QuickCheck
|
||||
, regexPosix, testFramework, testFrameworkHunit
|
||||
, testFrameworkQuickcheck2, time
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "Cabal";
|
||||
version = "1.20.0.0";
|
||||
sha256 = "1m2lp6v1959mdm9zfg6fg1xw2iv749r4rzj576lqvn66slwsjpw1";
|
||||
buildDepends = [ deepseq filepath time ];
|
||||
testDepends = [
|
||||
extensibleExceptions filepath HUnit QuickCheck regexPosix
|
||||
testFramework testFrameworkHunit testFrameworkQuickcheck2
|
||||
];
|
||||
doCheck = false;
|
||||
meta = {
|
||||
homepage = "http://www.haskell.org/cabal/";
|
||||
description = "A framework for packaging Haskell software";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
maintainers = [
|
||||
self.stdenv.lib.maintainers.andres
|
||||
self.stdenv.lib.maintainers.simons
|
||||
];
|
||||
};
|
||||
})
|
30
pkgs/tools/package-management/cabal-install/1.20.0.0.nix
Normal file
30
pkgs/tools/package-management/cabal-install/1.20.0.0.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ cabal, Cabal, filepath, HTTP, HUnit, mtl, network, QuickCheck
|
||||
, random, stm, testFramework, testFrameworkHunit
|
||||
, testFrameworkQuickcheck2, time, zlib
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "cabal-install";
|
||||
version = "1.20.0.0";
|
||||
sha256 = "0m05wjmi8b07xzri3d7y7bwcxmd1asj3kcg9c1idhjwmg2nla2dz";
|
||||
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
|
||||
'';
|
||||
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 ];
|
||||
};
|
||||
})
|
|
@ -714,6 +714,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x
|
|||
Cabal_1_14_0 = callPackage ../development/libraries/haskell/Cabal/1.14.0.nix { cabal = self.cabal.override { Cabal = null; }; };
|
||||
Cabal_1_16_0_3 = callPackage ../development/libraries/haskell/Cabal/1.16.0.3.nix { cabal = self.cabal.override { Cabal = null; }; };
|
||||
Cabal_1_18_1_3 = callPackage ../development/libraries/haskell/Cabal/1.18.1.3.nix { cabal = self.cabal.override { Cabal = null; }; };
|
||||
Cabal_1_20_0_0 = callPackage ../development/libraries/haskell/Cabal/1.20.0.0.nix { cabal = self.cabal.override { Cabal = null; }; };
|
||||
Cabal = null; # core package in GHC
|
||||
|
||||
cabalFileTh = callPackage ../development/libraries/haskell/cabal-file-th {};
|
||||
|
@ -3047,6 +3048,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x
|
|||
cabalInstall_1_18_0_3 = callPackage ../tools/package-management/cabal-install/1.18.0.3.nix {
|
||||
Cabal = self.Cabal_1_18_1_3;
|
||||
};
|
||||
cabalInstall_1_20_0_0 = callPackage ../tools/package-management/cabal-install/1.20.0.0.nix {
|
||||
Cabal = self.Cabal_1_20_0_0;
|
||||
};
|
||||
cabalInstall = self.cabalInstall_1_18_0_3;
|
||||
|
||||
gitAnnex = callPackage ../applications/version-management/git-and-tools/git-annex {
|
||||
|
|
Loading…
Reference in a new issue