diff --git a/pkgs/development/tools/haskell/cabal-dev/default.nix b/pkgs/development/tools/haskell/cabal-dev/default.nix new file mode 100644 index 000000000000..79385bd88a96 --- /dev/null +++ b/pkgs/development/tools/haskell/cabal-dev/default.nix @@ -0,0 +1,21 @@ +{ cabal, Cabal, cabalInstall, filepath, HTTP, mtl, network, tar +, transformers, zlib +}: + +cabal.mkDerivation (self: { + pname = "cabal-dev"; + version = "0.9.1"; + sha256 = "1brz0nw959jdyjrhjqy9sixsb316hjmw4pxxsybfl8vixsivdfh6"; + isLibrary = false; + isExecutable = true; + buildDepends = [ + Cabal filepath HTTP mtl network tar transformers zlib + ]; + buildTools = [ cabalInstall ]; + meta = { + homepage = "http://github.com/creswick/cabal-dev"; + description = "Manage sandboxed Haskell build environments"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index c9c72cc4a6b5..3a1ad4f2081a 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1904,6 +1904,13 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); cabal2nix = callPackage ../development/tools/haskell/cabal2nix {}; + cabalDev = callPackage ../development/tools/haskell/cabal-dev { + mtl = self.mtl_2_0_1_0.override { transformers = self.transformers_0_2_2_0; }; + transformers = self.transformers_0_2_2_0; + tar = self.tar_0_3_2_0; + }; + + cabalGhci = callPackage ../development/tools/haskell/cabal-ghci {}; cabalInstall_0_6_2 = callPackage ../tools/package-management/cabal-install/0.6.2.nix {};