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.2
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
26 > Recognized URI schemes:
28 > cabal://pkgname-pkgversion download the specified package from Hackage
29 > cabal://pkgname download latest version of the specified package from Hackage
30 > http://host/path fetch the Cabal file via HTTP
31 > file:///local/path load the Cabal file from the local disk
32 > /local/path abbreviated version of file URI
34 The only required argument is the path to the cabal file. For example:
36 > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.49/cabal2nix.cabal
37 > cabal2nix cabal://cabal2nix-1.49
39 If the @--sha256@ option has not been specified, cabal2nix calls
40 @nix-prefetch-url@ to determine the hash automatically. This causes
41 network traffic, obviously.
45 Location: git://github.com/NixOS/cabal2nix.git
50 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.10,
51 filepath, directory, process, HTTP, hackage-db
52 Extensions: PatternGuards, RecordWildCards, CPP
54 other-modules: Cabal2Nix.CorePackages
62 Distribution.NixOS.Derivation.Cabal
63 Distribution.NixOS.Derivation.License
64 Distribution.NixOS.Derivation.Meta
65 Distribution.NixOS.PrettyPrinting
68 main-is: Hackage4Nix.hs
70 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.10,
71 mtl, containers, directory, filepath, hackage-db
72 Extensions: PatternGuards, RecordWildCards, CPP
74 other-modules: Cabal2Nix.CorePackages
81 Distribution.NixOS.Derivation.Cabal
82 Distribution.NixOS.Derivation.License
83 Distribution.NixOS.Derivation.Meta
84 Distribution.NixOS.PrettyPrinting
86Test-Suite doctest-cabal2nix
87 type: exitcode-stdio-1.0
90 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