@@ -1,198 +0,0 @@
3−copyright: Peter Simons, Andres Loeh
6−author: Peter Simons <simons@cryp.to>, Andres Loeh <mail@andres-loeh.de>
7−maintainer: Nix Developers <nix-dev@lists.science.uu.nl>
8−homepage: http://github.com/NixOS/cabal2nix
10−synopsis: Convert Cabal files into Nix build instructions
15− The @cabal2nix@ utility converts Cabal files into Nix build instructions. The
16− commandline syntax is:
18− > Usage: cabal2nix [options] URI
19− > -h --help show this help text
20− > -v --version print version
21− > --hackage-db=FILEPATH path to the local hackage db in tar format
22− > --sha256=HASH sha256 hash of source tarball
23− > -m MAINTAINER --maintainer=MAINTAINER maintainer of this package (may be specified multiple times)
24− > -p PLATFORM --platform=PLATFORM supported build platforms (may be specified multiple times)
25− > -f FLAG --flag=FLAG Cabal flag (may be specified multiple times)
26− > --jailbreak don't honor version restrictions on build inputs
27− > --no-haddock don't run Haddock when building this package
28− > --no-check don't run regression test suites of this package
29− > --rev=REVISION revision, only used when fetching from VCS
30− > --no-hyperlink-source don't add pretty-printed source code to the documentation
31− > --shell generate output suitable for nix-shell
33− > Recognized URI schemes:
35− > cabal://pkgname-pkgversion download the specified package from Hackage
36− > cabal://pkgname download latest version of the specified package from Hackage
37− > http://host/path fetch the Cabal file via HTTP
38− > file:///local/path load the Cabal file from the local disk
39− > /local/path.cabal abbreviated version of file URI
40− > <git/svn/bzr/hg URL> download the source from the specified repository
42− The only required argument is the path to the cabal file. For example:
44− > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/2.0/cabal2nix.cabal
45− > cabal2nix cabal://cabal2nix-2.0
47− If the @--sha256@ option has not been specified, cabal2nix calls
48− @nix-prefetch-url@ to determine the hash automatically. This causes
49− network traffic, obviously.
51− If the argument refers to a source repository instead of a cabal file,
52− cabal2nix will use that source repository to fetch from instead of hackage.
53− Currently, cabal2nix supports directories, archives (fetched via http or https) and
54− git, mercurial, svn or bazaar repositories.
56−source-repository head
58− location: git://github.com/NixOS/cabal2nix.git
61− main-is: cabal2nix.hs
85− extensions: PatternGuards, RecordWildCards, DeriveGeneric, StandaloneDeriving
87− other-modules: Cabal2Nix.CorePackages
95− Cabal2Nix.PostProcess
97− Distribution.NixOS.Derivation.Cabal
98− Distribution.NixOS.Derivation.License
99− Distribution.NixOS.Derivation.Meta
100− Distribution.NixOS.Fetch
101− Distribution.NixOS.PackageMap
102− Distribution.NixOS.Util.PrettyPrinting
104−executable hackage2nix
105− main-is: hackage2nix.hs
107− build-depends: aeson
117− , hackage-db >= 1.11
129− ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
130− extensions: PatternGuards, RecordWildCards, CPP, DeriveGeneric, StandaloneDeriving
131− other-modules: Cabal2Nix.CorePackages
139− Cabal2Nix.PostProcess
141− Distribution.NixOS.Derivation.Cabal
142− Distribution.NixOS.Derivation.License
143− Distribution.NixOS.Derivation.Meta
144− Distribution.NixOS.Fetch
145− Distribution.NixOS.PackageMap
146− Distribution.NixOS.Util.PrettyPrinting
148−test-suite doctest-cabal2nix
149− type: exitcode-stdio-1.0
150− main-is: doc-test.hs
151− hs-source-dirs: test
152− extensions: PatternGuards, RecordWildCards, CPP, DeriveGeneric, StandaloneDeriving
153− build-depends: base, doctest
156− type: exitcode-stdio-1.0
158− hs-source-dirs: src, test
159− extensions: PatternGuards, RecordWildCards, CPP, DeriveGeneric, StandaloneDeriving
160− build-depends: aeson
170− , hackage-db >= 1.11
183− other-modules: Cabal2Nix.CorePackages
191− Cabal2Nix.PostProcess
193− Distribution.NixOS.Derivation.Cabal
194− Distribution.NixOS.Derivation.License
195− Distribution.NixOS.Derivation.Meta
196− Distribution.NixOS.Fetch
197− Distribution.NixOS.PackageMap
198− Distribution.NixOS.Util.PrettyPrinting