cabal2nix: Convert Cabal files into Nix build instructions
The cabal2nix
utility converts Cabal files into Nix build instructions. The
commandline syntax is:
Usage: cabal2nix [options] url-to-cabal-file-or-repo -h --help show this help text -v --version print version --hackage-db=FILEPATH path to the local hackage db in tar format --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) --jailbreak don't honor version restrictions on build inputs --no-haddock don't run Haddock when building this package --no-check don't run regression test suites of this package --no-hyperlink-source don't add pretty-printed source code to the documentation Recognized URI schemes: cabal://pkgname-pkgversion download the specified package from Hackage cabal://pkgname download latest version of 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.cabal abbreviated version of file URI <git/svn/bzr/hg URL> download the source from the specified repository
The only required argument is the path to the cabal file. For example:
cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.72/cabal2nix.cabal cabal2nix cabal://cabal2nix-1.72
If the --sha256
option has not been specified, cabal2nix calls
nix-prefetch-url
to determine the hash automatically. This causes
network traffic, obviously.
If the argument refers to a source repository instead of a cabal file, cabal2nix will use that source repository to fetch from instead of hackage. Currently, cabal2nix supports directories, archives (fetched via http or https) and git, mercurial, svn or bazaar repositories.
[Skip to Readme]
Downloads
- cabal2nix-1.72.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 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, 1.50, 1.51, 1.52, 1.53, 1.54, 1.55, 1.56, 1.57, 1.58, 1.59, 1.60, 1.61, 1.63, 1.64, 1.65, 1.66, 1.67, 1.68, 1.69, 1.70, 1.71, 1.72, 1.73, 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1, 2.1.1, 2.2, 2.2.1, 2.3, 2.3.1, 2.4, 2.4.1, 2.5, 2.6, 2.7, 2.7.1, 2.7.2, 2.8, 2.8.1, 2.8.2, 2.9, 2.9.1, 2.9.2, 2.9.3, 2.10.0, 2.10.1, 2.10.2, 2.11, 2.11.1, 2.12, 2.13, 2.14, 2.14.1, 2.14.2, 2.14.3, 2.14.4, 2.15.0, 2.15.1, 2.15.2, 2.15.3, 2.15.4, 2.15.5, 2.15.6, 2.16.0, 2.17.0, 2.18.0, 2.19.0, 2.19.1 (info) |
---|---|
Dependencies | base (>=3 && <5), Cabal (>=1.18 && <1.22), containers, directory, filepath, hackage-db, mtl, pretty, process, regex-posix, transformers [details] |
Tested with | ghc >=7.0.4 && <=7.8.3 |
License | BSD-3-Clause |
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> |
Revised | Revision 1 made by PeterSimons at 2015-01-05T18:04:03Z |
Category | Distribution |
Home page | http://github.com/NixOS/cabal2nix |
Source repo | head: git clone git://github.com/NixOS/cabal2nix.git |
Uploaded | by PeterSimons at 2014-12-05T17:56:21Z |
Distributions | LTSHaskell:2.19.1, NixOS:2.19.1, Stackage:2.19.1 |
Reverse Dependencies | 4 direct, 0 indirect [details] |
Executables | hackage4nix, cabal2nix |
Downloads | 98399 total (387 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] Last success reported on 2015-12-11 [all 7 reports] |