git.iko.soy/typeable/nixpkgs-stackage
on master help sign in
Update readme
commit4d9cc82ed947cce442d29c1fd6810bd85e79f177 authorDmitry Bushev <bushevdv@gmail.com> dateWed 20 Dec 2017, 15:52 (9 years ago) parent93f9559
5 files changed+231−4849
README.md+14−1 stackage/lts-9.0/configuration-packages.nix+3−3 stackage/lts-9.0/default.nix+7−9 stackage/lts-9.0/packages.nix+206−4835 update.nix+1−1
README.md+14−1
@@ -11,6 +11,11 @@ Nixpgs overlay
1111
1212Symlink the current `./haskell-overlay.nix` into the `~/.config/nixpkgs/overlays` folder.
1313
14+```
15+cd ~/.config/nixpkgs/overlays
16+ln -s /path/to/haskell-overlay.nix typeable-overlay.nix
17+```
18+
1419## Haskell overlay
1520
1621List LTS packages:
@@ -22,7 +27,15 @@ nix-env -f '<nixpkgs>' -qaP -A haskell.packages.stackage.lts-100
2227Install stackage2nix:
2328
2429```
25−$ nix-env -i -f ./stackage2nix
30+$ nix-env -i stackage2nix
31+```
32+
33+## Update script
34+
35+Update script will add missing lts releases to `stackage` directory
36+
37+```
38+nix-shell update.nix --pure
2639```
2740
2841[stackage2nix]: https://github.com/typeable/stackage2nix
stackage/lts-9.0/configuration-packages.nix+3−3
@@ -1,7 +1,7 @@
1−# Generated by stackage2nix 0.3.0 from "/nix/store/krbfmzjsh3i4d3p1na2ppj8d85zr2chq-stackage-lts/lts-9.0.yaml"
2−{ pkgs }:
1+# Generated by stackage2nix 0.4.0 from "/nix/store/y9cbijn0b3kwh5rb6vm30ya5qbsrpxwm-stackage-lts/lts-9.0.yaml"
2+{ pkgs, haskellLib }:
33
4−with pkgs.haskell.lib; self: super: {
4+with haskellLib; self: super: {
55
66 # core packages
77 "array" = null;
stackage/lts-9.0/default.nix+7−9
@@ -1,14 +1,12 @@
1+# Generated by stackage2nix 0.4.0 from "/nix/store/y9cbijn0b3kwh5rb6vm30ya5qbsrpxwm-stackage-lts/lts-9.0.yaml"
12{ nixpkgs ? import <nixpkgs> {} }:
23
3−with nixpkgs;
4−let
5− inherit (stdenv.lib) extends;
6− stackagePackages = self: import ./packages.nix { inherit pkgs stdenv; inherit (self) callPackage ; };
7− stackageConfig = callPackage ./configuration-packages.nix {};
4+with nixpkgs; let
5+ haskellLib = callPackage (nixpkgs.path + /pkgs/development/haskell-modules/lib.nix) {};
86in callPackage (nixpkgs.path + /pkgs/development/haskell-modules) {
97 ghc = pkgs.haskell.compiler.ghc802;
10− compilerConfig = self: extends stackageConfig (stackagePackages self);
11− haskellLib = callPackage (nixpkgs.path + /pkgs/development/haskell-modules/lib.nix) {};
12− initialPackages = args: self: {};
13− configurationCommon = args: self: super: {};
8+ compilerConfig = import ./configuration-packages.nix { inherit pkgs haskellLib; };
9+ initialPackages = import ./packages.nix;
10+ configurationCommon = if builtins.pathExists ./configuration-common.nix then import ./configuration-common.nix else args: self: super: {};
11+ inherit haskellLib;
1412}
stackage/lts-9.0/packages.nix+206−4835

This diff is too big to show here.

update.nix+1−1

This diff is too big to show here.