git.iko.soy/typeable/cabal2nix
on v1.26 help sign in
typeable/cabal2nix/cabal2nix.cabal
82 lines 3.8 kB history raw
1Name: cabal2nix
2Version: 1.26
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/haskell4nix/cabal2nix
9Category: Distribution
10Synopsis: Convert Cabal files into Nix build instructions
11Cabal-Version: >= 1.8
12Build-Type: Custom
13Tested-With: GHC == 6.12.3, GHC == 7.0.4, GHC == 7.4.1
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 >
25 > Recognized URI schemes:
26 >
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
31 .
32 The only required argument is the path to the cabal file. For example:
33 .
34 > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.26/cabal2nix.cabal
35 > cabal2nix cabal://cabal2nix-1.26
36 .
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.
41Source-Repository head
42 Type: git
43 Location: git://github.com/haskell4nix/cabal2nix.git
45Executable cabal2nix
46 main-is: Cabal2Nix.hs
47 hs-source-dirs: src
48 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.8,
49 filepath, directory, process, HTTP
50 Extensions: PatternGuards, RecordWildCards, CPP
51 Ghc-Options: -Wall
52 other-modules: Cabal2Nix.CorePackages
53 Cabal2Nix.Flags
54 Cabal2Nix.Generate
55 Cabal2Nix.Hackage
56 Cabal2Nix.License
57 Cabal2Nix.Name
58 Cabal2Nix.Normalize
59 Cabal2Nix.PostProcess
60 Distribution.NixOS.Derivation.Cabal
61 Distribution.NixOS.Derivation.License
62 Distribution.NixOS.Derivation.Meta
63 Distribution.NixOS.PrettyPrinting
65Executable hackage4nix
66 main-is: Hackage4Nix.hs
67 hs-source-dirs: src
68 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.8,
69 mtl, containers, directory, filepath, hackage-db
70 Extensions: PatternGuards, RecordWildCards, CPP
71 Ghc-Options: -Wall
72 other-modules: Cabal2Nix.CorePackages
73 Cabal2Nix.Flags
74 Cabal2Nix.Generate
75 Cabal2Nix.License
76 Cabal2Nix.Name
77 Cabal2Nix.Normalize
78 Cabal2Nix.PostProcess
79 Distribution.NixOS.Derivation.Cabal
80 Distribution.NixOS.Derivation.License
81 Distribution.NixOS.Derivation.Meta
82 Distribution.NixOS.PrettyPrinting