haskell-packages: added cabal2nix, a utility to convert Cabal files into Nix build instructions

Naturally, the tool generated its own build expression. :-)

svn path=/nixpkgs/trunk/; revision=28170
This commit is contained in:
Peter Simons 2011-08-05 17:03:14 +00:00
parent a12937570c
commit a650832b2c
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{cabal}:
cabal.mkDerivation (self : {
pname = "cabal2nix";
version = "1.2";
sha256 = "f60dbb36dc73351e1891d2b31ae66c465955c46b87eedb0928bcf61b9a7eff54";
propagatedBuildInputs = [];
meta = {
homepage = "http://github.com/peti/cabal2nix";
description = "Convert Cabal files into Nix build instructions";
license = self.stdenv.lib.licenses.bsd3;
};
})

View File

@ -405,6 +405,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
bytestringTrie = callPackage ../development/libraries/haskell/bytestring-trie {};
cabal2nix = callPackage ../development/libraries/haskell/cabal2nix {};
cairo = callPackage ../development/libraries/haskell/cairo {
inherit (pkgs) cairo zlib;
};