Skip to content
Stackage overlay for Nixpkgs
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
stackage add missing packages, use configureCabalFlags Jan 28, 2019
stackage2nix
.gitignore
.travis.yml Allow nixpkgs-unstable fail on Travis Feb 3, 2018
README.md
cache-version.txt Update stackage LTS trough 13.3 Jan 28, 2019
default.nix
lib.nix Update examples Jun 20, 2018
nix-build-release.sh
nixpkgs.json
nixpkgs.nix
release.nix
supported-stackage-releases.txt Update stackage LTS trough 13.3 Jan 28, 2019
update.nix
update.sh Make the update script more cross-platform Feb 2, 2018

README.md

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.