The cabal2nix package
The cabal2nix utility converts Cabal files into Nix build instructions. The commandline syntax is:
Usage: cabal2nix [options] url-to-cabal-file
-h --help show this help text
--sha256=HASH sha256 hash of source tarball
-m MAINTAINER --maintainer=MAINTAINER maintainer of this package (may be specified multiple times)
-p PLATFORM --platform=PLATFORM supported build platforms (may be specified multiple times)
Recognized URI schemes:
cabal://pkgname-pkgversion download the specified package from Hackage
http://host/path fetch the Cabal file via HTTP
file:///local/path load the Cabal file from the local disk
/local/path abbreviated version of file URI
The only required argument is the path to the cabal file. For example:
cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.30/cabal2nix.cabal cabal2nix cabal://cabal2nix-1.30
If the --sha256 option has not been specified, cabal2nix calls nix-prefetch-url to determine the hash automatically. This causes network traffic, obviously.
Properties
| Versions | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21, 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30, 1.31, 1.32, 1.33, 1.34, 1.35, 1.37, 1.38, 1.39, 1.40, 1.41, 1.42, 1.43, 1.44, 1.45, 1.46, 1.47, 1.48, 1.49 |
|---|---|
| Dependencies | base (≥3 & <5), Cabal (≥1.8), containers, directory, filepath, hackage-db, HTTP, mtl, pretty, process, regex-posix |
| License | BSD3 |
| Copyright | Peter Simons, Andres Loeh |
| Author | Peter Simons <simons@cryp.to>, Andres Loeh <mail@andres-loeh.de> |
| Maintainer | Nix Developers <nix-dev@lists.science.uu.nl> |
| Category | Distribution |
| Home page | http://github.com/NixOS/cabal2nix |
| Source repository | git clone git://github.com/NixOS/cabal2nix.git |
| Executables | hackage4nix, cabal2nix |
| Upload date | Sun Mar 25 19:22:48 UTC 2012 |
| Uploaded by | PeterSimons |
| Distributions | NixOS: 1.49 |
Downloads
- cabal2nix-1.30.tar.gz (Cabal source package)
- package description (included in the package)