44 lines
1.7 KiB
Nix
44 lines
1.7 KiB
Nix
{ cabal, filepath, HTTP, HUnit, mtl, network, QuickCheck
|
|
, random, stm, testFramework, testFrameworkHunit
|
|
, testFrameworkQuickcheck2, time, zlib, fetchgit
|
|
}:
|
|
|
|
cabal.mkDerivation (self: {
|
|
pname = "Cabal";
|
|
version = "b9c90bb4";
|
|
src = fetchgit {
|
|
url = git://github.com/ghcjs/cabal.git;
|
|
rev = "b9c90bb4d6fed8c2cc8323a7e24b67f821c1ee47"; # Must be from the ghcjs branch
|
|
sha256 = "d678d8c54d82db8b4fb0d7dc72c4832025c69586da8c0f65f6d05f6f50103c62";
|
|
};
|
|
preConfigure = "cd Cabal";
|
|
configureFlags = "--program-suffix=-js";
|
|
|
|
# jww (2014-05-31): Why is this failing?
|
|
# BuildDeps/InternalLibrary4:
|
|
# : [Failed]
|
|
# expected: 'setup install' should succeed
|
|
# output: "/private/var/folders/8h/tky3qz1d63l05l5jp_nzwzjr0000gn/T/nix-build-haskell-Cabal-ghcjs-ghc7.8.2-9e87d6a3-shared.drv-0/git-export/Cabal/tests/Setup configure --user -w /nix/store/v1gr2sk0117ycn9bmwyp3whgxqkbd5sl-ghc-7.8.2-wrapper/bin/ghc" in PackageTests/BuildDeps/InternalLibrary4/to-install
|
|
# Configuring InternalLibrary4-0.2...
|
|
# Setup: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with
|
|
# Cabal. Use the flag --package-db to specify a package database (it can be used
|
|
# multiple times).
|
|
doCheck = false;
|
|
noHaddock = true;
|
|
|
|
buildDepends = [
|
|
filepath HTTP mtl network random stm time zlib QuickCheck
|
|
];
|
|
testDepends = [
|
|
filepath HTTP HUnit mtl network QuickCheck stm testFramework
|
|
testFrameworkHunit testFrameworkQuickcheck2 time zlib
|
|
];
|
|
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 ];
|
|
};
|
|
})
|