git.iko.soy/typeable/cabal2nix
on v1.49 help sign in
typeable/cabal2nix/cabal2nix.cabal
90 lines 4.2 kB history raw
1Name: cabal2nix
2Version: 1.49
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.2
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 >
26 > Recognized URI schemes:
27 >
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
33 .
34 The only required argument is the path to the cabal file. For example:
35 .
36 > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.49/cabal2nix.cabal
37 > cabal2nix cabal://cabal2nix-1.49
38 .
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.
43Source-Repository head
44 Type: git
45 Location: git://github.com/NixOS/cabal2nix.git
47Executable cabal2nix
48 main-is: Cabal2Nix.hs
49 hs-source-dirs: src
50 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.10,
51 filepath, directory, process, HTTP, hackage-db
52 Extensions: PatternGuards, RecordWildCards, CPP
53 Ghc-Options: -Wall
54 other-modules: Cabal2Nix.CorePackages
55 Cabal2Nix.Flags
56 Cabal2Nix.Generate
57 Cabal2Nix.Hackage
58 Cabal2Nix.License
59 Cabal2Nix.Name
60 Cabal2Nix.Normalize
61 Cabal2Nix.PostProcess
62 Distribution.NixOS.Derivation.Cabal
63 Distribution.NixOS.Derivation.License
64 Distribution.NixOS.Derivation.Meta
65 Distribution.NixOS.PrettyPrinting
67Executable hackage4nix
68 main-is: Hackage4Nix.hs
69 hs-source-dirs: src
70 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.10,
71 mtl, containers, directory, filepath, hackage-db
72 Extensions: PatternGuards, RecordWildCards, CPP
73 Ghc-Options: -Wall
74 other-modules: Cabal2Nix.CorePackages
75 Cabal2Nix.Flags
76 Cabal2Nix.Generate
77 Cabal2Nix.License
78 Cabal2Nix.Name
79 Cabal2Nix.Normalize
80 Cabal2Nix.PostProcess
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
88 main-is: doc-test.hs
89 hs-source-dirs: test
90 build-depends: base, doctest