3Copyright: Peter Simons, Andres Loeh
6Author: Peter Simons <simons@cryp.to>, Andres Loeh <mail@andres-loeh.de>
7Maintainer: Nix Developers <nix-dev@lists.science.uu.nl>
8Homepage: http://github.com/NixOS/cabal2nix
10Synopsis: Convert Cabal files into Nix build instructions
13Tested-With: GHC >= 6.12.3 && <= 7.6.3
16 The @cabal2nix@ utility converts Cabal files into Nix build instructions. The
17 commandline syntax is:
19 > Usage: cabal2nix [options] url-to-cabal-file
20 > -h --help show this help text
21 > --sha256=HASH sha256 hash of source tarball
22 > -m MAINTAINER --maintainer=MAINTAINER maintainer of this package (may be specified multiple times)
23 > -p PLATFORM --platform=PLATFORM supported build platforms (may be specified multiple times)
24 > --no-check don't run regression test suites of this package
25 > --jailbreak don't honor version restrictions on build inputs
27 > Recognized URI schemes:
29 > cabal://pkgname-pkgversion download the specified package from Hackage
30 > cabal://pkgname download latest version of the specified package from Hackage
31 > http://host/path fetch the Cabal file via HTTP
32 > file:///local/path load the Cabal file from the local disk
33 > /local/path abbreviated version of file URI
35 The only required argument is the path to the cabal file. For example:
37 > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.58/cabal2nix.cabal
38 > cabal2nix cabal://cabal2nix-1.58
40 If the @--sha256@ option has not been specified, cabal2nix calls
41 @nix-prefetch-url@ to determine the hash automatically. This causes
42 network traffic, obviously.
46 Location: git://github.com/NixOS/cabal2nix.git
51 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.16,
52 filepath, directory, process, HTTP, hackage-db
53 Extensions: PatternGuards, RecordWildCards, CPP
55 other-modules: Cabal2Nix.CorePackages
63 Distribution.NixOS.Derivation.Cabal
64 Distribution.NixOS.Derivation.License
65 Distribution.NixOS.Derivation.Meta
66 Distribution.NixOS.PrettyPrinting
69 main-is: hackage4nix.hs
71 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.16,
72 mtl, containers, directory, filepath, hackage-db
73 Extensions: PatternGuards, RecordWildCards, CPP
75 other-modules: Cabal2Nix.CorePackages
82 Distribution.NixOS.Derivation.Cabal
83 Distribution.NixOS.Derivation.License
84 Distribution.NixOS.Derivation.Meta
85 Distribution.NixOS.PrettyPrinting
87Test-Suite doctest-cabal2nix
88 type: exitcode-stdio-1.0
91 build-depends: base, doctest
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list