Skip to content

Latest commit

 

History

History
 
 

hackage2nix

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

hackage2nix

Usage

This tool is used to update the Haskell package set in nixpkgs (hackage-packages.nix).

It gets used by the maintainers/scripts/haskell/regenerate-hackage-packages.sh script in nixpkgs. There are usually no reasons to run this tool any other way. For development and testing you can modify the environment variable HACKAGE2NIX of that script.

Further informations regarding the usage of hackage2nix in nixpkgs can be found under nixpkgs:pkgs/development/haskell-modules/HACKING.md.

Requirements

This must be run on a case sensitive file system. On OSX you can use this to create one (you can replace 60g with 4g as that should be plenty).

For building cabal2nix and hackage2nix you need to have cabal-install installed.

Development

For development setup see the toplevel cabal2nix README.

Video tutorial

There is a now out-dated video on YouTube that gives a thorough walk-through of the previous work flow. It also explains many of the background considerations.