git.iko.soy/typeable/cabal2nix
on v1.58 help sign in
typeable/cabal2nix/cabal2nix.cabal
91 lines 4.2 kB history raw
1Name: cabal2nix
2Version: 1.58
3Copyright: Peter Simons, Andres Loeh
4License: BSD3
5License-File: LICENSE
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
9Category: Distribution
10Synopsis: Convert Cabal files into Nix build instructions
11Cabal-Version: >= 1.8
12Build-Type: Custom
13Tested-With: GHC >= 6.12.3 && <= 7.6.3
14Data-files: README.md
15Description:
16 The @cabal2nix@ utility converts Cabal files into Nix build instructions. The
17 commandline syntax is:
18 .
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
26 >
27 > Recognized URI schemes:
28 >
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
34 .
35 The only required argument is the path to the cabal file. For example:
36 .
37 > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.58/cabal2nix.cabal
38 > cabal2nix cabal://cabal2nix-1.58
39 .
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.
44Source-Repository head
45 Type: git
46 Location: git://github.com/NixOS/cabal2nix.git
48Executable cabal2nix
49 main-is: cabal2nix.hs
50 hs-source-dirs: src
51 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.16,
52 filepath, directory, process, HTTP, hackage-db
53 Extensions: PatternGuards, RecordWildCards, CPP
54 Ghc-Options: -Wall
55 other-modules: Cabal2Nix.CorePackages
56 Cabal2Nix.Flags
57 Cabal2Nix.Generate
58 Cabal2Nix.Hackage
59 Cabal2Nix.License
60 Cabal2Nix.Name
61 Cabal2Nix.Normalize
62 Cabal2Nix.PostProcess
63 Distribution.NixOS.Derivation.Cabal
64 Distribution.NixOS.Derivation.License
65 Distribution.NixOS.Derivation.Meta
66 Distribution.NixOS.PrettyPrinting
68Executable hackage4nix
69 main-is: hackage4nix.hs
70 hs-source-dirs: src
71 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.16,
72 mtl, containers, directory, filepath, hackage-db
73 Extensions: PatternGuards, RecordWildCards, CPP
74 Ghc-Options: -Wall
75 other-modules: Cabal2Nix.CorePackages
76 Cabal2Nix.Flags
77 Cabal2Nix.Generate
78 Cabal2Nix.License
79 Cabal2Nix.Name
80 Cabal2Nix.Normalize
81 Cabal2Nix.PostProcess
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
89 main-is: doc-test.hs
90 hs-source-dirs: test
91 build-depends: base, doctest