Stackage overlay for Nixpkgs
Go to file
2020-04-15 11:32:50 +00:00
examples Update examples 2018-06-20 18:21:47 +03:00
stackage Add dontCheck to store in LTS-13.21. 2020-04-15 11:32:50 +00:00
stackage2nix Update stackage2nix derivation to work with LTS-13.21. 2020-04-13 10:37:13 +00:00
.gitignore Add stackage update script 2017-12-19 22:19:34 +03:00
.travis.yml Allow nixpkgs-unstable fail on Travis 2018-02-03 12:03:27 +03:00
cache-version.txt Update stackage LTS through 13.21 2019-05-14 16:14:42 +02:00
default.nix Update examples 2018-06-20 18:21:47 +03:00
lib.nix Update examples 2018-06-20 18:21:47 +03:00
nix-build-release.sh Upd nix-build-release 2018-01-09 18:56:41 +03:00
nixpkgs.json Update stackge2nix 0.7.2 2018-08-14 18:40:51 +03:00
nixpkgs.nix Pin nixpkgs 2018-02-03 10:02:31 +03:00
README.md Update README.md 2018-07-13 22:40:18 +03:00
release.nix fix import purity 2018-07-24 17:22:06 +03:00
supported-stackage-releases.txt deduplicate supported-stackage-releases.nix 2019-05-14 16:16:48 +02:00
update.nix Update Stackage 2018-06-20 18:35:50 +03:00
update.sh Make the update script more cross-platform 2018-02-02 20:51:48 +03:00

nixpkgs-stackage

Build Status

Nixpkgs overlay adding Stackage Haskell packages at the pkgs.haskell.packages.stackage

Install

Symlink the current ./default.nix into the ~/.config/nixpkgs/overlays folder.

cd ~/.config/nixpkgs/overlays
ln -s /path/to/default.nix stackage-overlay.nix

Contents

  • Stackage LTS releases at pkgs.haskell.packages.stackage
  • stackage2nix at pkgs
  • build utils at pkgs.haskell.packages.stackage.lib

Haskell overlay

List LTS packages:

nix-env -f '<nixpkgs>' -qaP -A haskell.packages.stackage.lts-100

Install stackage2nix:

$ nix-env -i stackage2nix

Update script

Update script will add missing lts releases to stackage directory:

./update.sh

Examples

Build derivation for stackage2nix from stackage2nix.json source.

let
  nixpkgs = import <nixpkgs> {
    overlays = [ (import ../default.nix) ];
  };
  inherit (nixpkgs) pkgs lib;

  stackage2nixSrc = pkgs.fetchFromGitHub (lib.importJSON ./stackage2nix.json);

  stackage = nixpkgs.haskell.packages.stackage.lib.callStackage2nix "stackage2nix" stackage2nixSrc {
    inherit nixpkgs;
  };
in
  stackage

Build:

nix-build example.nix -A stackage2nix

See examples directory for more