The cabal2nix package

[Tags: bsd3, program]

This utility converts Cabal files into Nix build instructions. The commandline syntax is:

 cabal2nix cabal-file-uri [sha256-hash]

The first argument is the path to the cabal file. That path can be an HTTP URL or local file path. For example:

 cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.4/cabal2nix.cabal 0m7zgsd1pxmw504xpvl7dg25ana6dkk1mcyjj4c1wdbkvhvbn3gn
 cabal2nix file:///tmp/cabal2nix.cabal 0m7zgsd1pxmw504xpvl7dg25ana6dkk1mcyjj4c1wdbkvhvbn3gn
 cabal2nix /tmp/cabal2nix.cabal 0m7zgsd1pxmw504xpvl7dg25ana6dkk1mcyjj4c1wdbkvhvbn3gn

The second argument -- the hash of the source tarball -- is optional. If it's not specified, cabal2nix calls nix-prefetch-url to determine the hash automatically. This causes network traffic, obviously.


Properties

Versions1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21, 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30, 1.31, 1.32, 1.33, 1.34, 1.35, 1.37, 1.38, 1.39, 1.40, 1.41, 1.42, 1.43, 1.44, 1.45, 1.46, 1.47, 1.48, 1.49, 1.50, 1.51, 1.52, 1.53, 1.54, 1.55, 1.56, 1.57, 1.58, 1.59, 1.60, 1.61, 1.63, 1.64, 1.65, 1.66
Dependenciesbase (>=3 && <5), Cabal, HTTP, process
LicenseBSD3
Copyright(c) 2011 Peter Simons
AuthorPeter Simons <simons@cryp.to>
MaintainerPeter Simons <simons@cryp.to>
CategoryDistribution
Home pagehttp://github.com/peti/cabal2nix
Source repositoryhead: git clone git://github.com/peti/cabal2nix.git
Executablescabal2nix
Upload dateFri Aug 5 19:24:28 UTC 2011
Uploaded byPeterSimons
DistributionsNixOS:1.66
Downloads3938 total (480 in last 30 days)

Downloads

Maintainers' corner

For package maintainers and hackage trustees