diff --git a/pkgs/development/tools/haskell/mkcabal/default.nix b/pkgs/development/tools/haskell/mkcabal/default.nix new file mode 100644 index 000000000000..04c66673ae26 --- /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 0b0f98cd933b..c9a615404774 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; };