The latest version of cabal2nix is 2.19.1-0.

cabal2nix

Version 1.66 revision 0 uploaded by PeterSimons.

Package meta

Synopsis
Convert Cabal files into Nix build instructions
Description

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
                 --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                      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.66/cabal2nix.cabal
cabal2nix cabal://cabal2nix-1.66

If the --sha256 option has not been specified, cabal2nix calls nix-prefetch-url to determine the hash automatically. This causes network traffic, obviously.

Author
Peter Simons <simons@cryp.to>, Andres Loeh <mail@andres-loeh.de>
Bug reports
n/a
Category
Distribution
Copyright
Peter Simons, Andres Loeh
Homepage
http://github.com/NixOS/cabal2nix
Maintainer
Nix Developers <nix-dev@lists.science.uu.nl>
Package URL
n/a
Stability
n/a

Components