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/haskell4nix/cabal2nix
10Synopsis: Convert Cabal files into Nix build instructions
13Tested-With: GHC == 6.12.3, GHC == 7.0.4, GHC == 7.4.1
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)
25 > Recognized URI schemes:
27 > cabal://pkgname-pkgversion download the specified package from Hackage
28 > http://host/path fetch the Cabal file via HTTP
29 > file:///local/path load the Cabal file from the local disk
30 > /local/path abbreviated version of file URI
32 The only required argument is the path to the cabal file. For example:
34 > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.26/cabal2nix.cabal
35 > cabal2nix cabal://cabal2nix-1.26
37 If the @--sha256@ option has not been specified, cabal2nix calls
38 @nix-prefetch-url@ to determine the hash automatically. This causes
39 network traffic, obviously.
43 Location: git://github.com/haskell4nix/cabal2nix.git
48 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.8,
49 filepath, directory, process, HTTP
50 Extensions: PatternGuards, RecordWildCards, CPP
52 other-modules: Cabal2Nix.CorePackages
60 Distribution.NixOS.Derivation.Cabal
61 Distribution.NixOS.Derivation.License
62 Distribution.NixOS.Derivation.Meta
63 Distribution.NixOS.PrettyPrinting
66 main-is: Hackage4Nix.hs
68 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.8,
69 mtl, containers, directory, filepath, hackage-db
70 Extensions: PatternGuards, RecordWildCards, CPP
72 other-modules: Cabal2Nix.CorePackages
79 Distribution.NixOS.Derivation.Cabal
80 Distribution.NixOS.Derivation.License
81 Distribution.NixOS.Derivation.Meta
82 Distribution.NixOS.PrettyPrinting
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