From 543483d99fdc583fb618a66aace2101458a12d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Thu, 27 Aug 2009 06:35:17 +0000 Subject: [PATCH] Added mkcabal. svn path=/nixpkgs/trunk/; revision=16875 --- pkgs/development/tools/haskell/mkcabal/default.nix | 12 ++++++++++++ pkgs/top-level/haskell-packages.nix | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/tools/haskell/mkcabal/default.nix diff --git a/pkgs/development/tools/haskell/mkcabal/default.nix b/pkgs/development/tools/haskell/mkcabal/default.nix new file mode 100644 index 00000000000..04c66673ae2 --- /dev/null +++ b/pkgs/development/tools/haskell/mkcabal/default.nix @@ -0,0 +1,12 @@ +{cabal, mtl, pcreLight, readline}: + +cabal.mkDerivation (self : { + pname = "mkcabal"; + version = "0.4.2"; + name = self.fname; + sha256 = "a3d781fdcdea4ac27a897888593091d4afee10dfc3eff5a49f9108b346232f50"; + propagatedBuildInputs = [mtl pcreLight readline]; + meta = { + description = "Generate cabal files for a Haskell project"; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 0b0f98cd933..c9a61540477 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -586,6 +586,10 @@ rec { inherit cabal mtl network time; }; + mkcabal = import ../development/tools/haskell/mkcabal { + inherit cabal mtl pcreLight readline; + }; + tar = import ../development/tools/haskell/tar { inherit cabal binary; };