File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ instantiate a package set.
81
81
# default.nix
82
82
let
83
83
# Import the Haskell.nix library,
84
- haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
84
+ src = builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz;
85
+ nixpkgs = import (src + "/nixpkgs") (import src);
86
+ haskell = nixpkgs.haskell-nix;
85
87
86
88
# Instantiate a package set using the generated file.
87
89
pkgSet = haskell.mkCabalProjectPkgSet {
Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ selects packages from the larger package set.
108
108
``` nix
109
109
# shell.nix
110
110
let
111
- haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
111
+ src = builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz;
112
+ nixpkgs = import (src + "/nixpkgs") (import src);
113
+ haskell = nixpkgs.haskell-nix;
112
114
in
113
115
haskell.haskellPackages.ghcWithPackages (ps: with ps;
114
116
[ lens conduit conduit-extra ])
@@ -125,7 +127,9 @@ project.
125
127
126
128
``` nix
127
129
let
128
- haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
130
+ src = builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz;
131
+ nixpkgs = import (src + "/nixpkgs") (import src);
132
+ haskell = nixpkgs.haskell-nix;
129
133
in
130
134
haskell.snapshots."lts-13.18".alex.components.exes.alex
131
135
```
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ instantiate a package set.
43
43
# default.nix
44
44
let
45
45
# Import the Haskell.nix library,
46
- haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
46
+ src = builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz;
47
+ nixpkgs = import (src + "/nixpkgs") (import src);
48
+ haskell = nixpkgs.haskell-nix;
47
49
48
50
# Instantiate a package set using the generated file.
49
51
pkgSet = haskell.mkStackPkgSet {
You can’t perform that action at this time.
0 commit comments