The cabal2nix package
This utility converts Cabal files into Nix build instructions. The commandline syntax is:
cabal2nix cabal-file-uri [sha256-hash]
The first argument is the path to the cabal file. That path can be an HTTP URL or local file path. For example:
cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.7/cabal2nix.cabal cabal2nix file:///tmp/cabal2nix.cabal cabal2nix /tmp/cabal2nix.cabal 0m7zgsd1pxmw504xpvl7dg25ana6dkk1mcyjj4c1wdbkvhvbn3gn
The second argument -- the hash of the source tarball -- is optional. If it's not 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, HTTP, process |
| License | BSD3 |
| Copyright | (c) 2011 Peter Simons |
| Author | Peter Simons <simons@cryp.to> |
| Maintainer | Peter Simons <simons@cryp.to> |
| Category | Distribution |
| Home page | http://github.com/peti/cabal2nix |
| Source repository | git clone git://github.com/peti/cabal2nix.git |
| Executables | cabal2nix |
| Upload date | Fri Aug 5 19:37:50 UTC 2011 |
| Uploaded by | PeterSimons |
| Distributions | NixOS: 1.49 |
Downloads
- cabal2nix-1.7.tar.gz (Cabal source package)
- package description (included in the package)