[Nix-dev] [Hackage] How to install Hackage package, not presented in nixpkgs, locally?

Marc Weber marco-oweber at gmx.de
Tue Aug 14 23:16:52 CEST 2012


This is the most recent howto Haskell page: https://nixos.org/wiki/Haskell
talking about how to use the Haskell packages which are packaged by
official nixpkgs.

My personal solution which is an alternative called "hack-nix"
allows you to install the package by adding a single line:

    pipesCore = exeByName { name = "pipes-core"; };

See latest commit: 
https://github.com/MarcWeber/nixpkgs-haskell-overlay/commit/1fde32dc7a6615a00335f33419dbc88ef84b95eb

For that repository to work you also have to use the
experimental/hack-nix branch found at github.com/MarcWeber/nixpkgs which
adds some additional knowledge about core packages of each ghc version
required by the brute force hack-nix solver.

However if you use it as dependency for a different target executable
its likely that running "hack-nix --build-env" will just succeed.

If it does not just ping me on irc or by mail

I'll write a nice wiki article now.

Marc Weber


More information about the nix-dev mailing list