Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/typeable/nixpkgs-stackage
Stackage overlay for Nixpkgs
https://github.com/typeable/nixpkgs-stackage
nixpkgs nixpkgs-stackage
Last synced: 3 months ago
JSON representation
Stackage overlay for Nixpkgs
- Host: GitHub
- URL: https://github.com/typeable/nixpkgs-stackage
- Owner: typeable
- Created: 2018-01-03T14:56:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T11:32:52.000Z (over 4 years ago)
- Last Synced: 2024-09-28T09:20:14.614Z (3 months ago)
- Topics: nixpkgs, nixpkgs-stackage
- Language: Nix
- Size: 14 MB
- Stars: 25
- Watchers: 16
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nixpkgs-stackage
[![Build Status](https://travis-ci.org/typeable/nixpkgs-stackage.svg?branch=master)](https://travis-ci.org/typeable/nixpkgs-stackage)
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 '' -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.
``` nix
let
nixpkgs = import {
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](./examples) directory for more
[stackage2nix]: https://github.com/typeable/stackage2nix