NixOS/cabal2nix — pull request #41 by dmalikov (2012-09-06 22:26:14+00:00)
Title: Handle case when cabal version is not specified

Works like that:

```bash
$> cabal2nix cabal://mtl
{ cabal, transformers }:

cabal.mkDerivation (self: {
pname = "mtl";
version = "2.1.2";
sha256 = "1vwb98ci3jnjpndym012amia41h3cjdwpy9330ws881l6dj5fxwc";
buildDepends = [ transformers ];
meta = {
homepage = "http://github.com/ekmett/mtl";
description = "Monad classes, using functional dependencies";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
};
})
```