forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cabal-install.nix
35 lines (35 loc) · 1.37 KB
/
cabal-install.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ mkDerivation, array, async, base, base16-bytestring, binary
, bytestring, Cabal, containers, cryptohash-sha256, deepseq
, directory, filepath, hackage-security, hashable, HTTP, mtl
, network, network-uri, pretty, pretty-show, process, QuickCheck
, random, regex-posix, stdenv, stm, tagged, tar, tasty, tasty-hunit
, tasty-quickcheck, time, unix, zlib
}:
mkDerivation {
pname = "cabal-install";
version = "1.25.0.0";
src = ./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 filepath
hackage-security hashable HTTP mtl network network-uri pretty
process random stm tar time unix zlib
];
testHaskellDepends = [
array async base base16-bytestring binary bytestring Cabal
containers cryptohash-sha256 deepseq directory filepath
hackage-security hashable HTTP mtl network network-uri pretty
pretty-show process QuickCheck random regex-posix stm tagged tar
tasty tasty-hunit tasty-quickcheck time unix zlib
];
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;
}