6
6
To build a package, say [ lens] [ ] , from a Stackage snapshot, say
7
7
[ lts-13.28] [ ] , you could run:
8
8
``` bash
9
- nix build ' (with import <nixpkgs> (import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz")).nixpkgsArgs; haskell-nix.snapshots."lts-13.28").lens.components.library'
9
+ nix build ' (with import <nixpkgs> (import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz") {} ).nixpkgsArgs; haskell-nix.snapshots."lts-13.28").lens.components.library'
10
10
```
11
11
This would build the (public) library component of the [ lens] [ ] package as
12
12
fixed by the [ lts-13.28] [ ] stackage snapshot. Nightly snapshots like
@@ -17,7 +17,7 @@ fixed by the [lts-13.28][] stackage snapshot. Nightly snapshots like
17
17
To build any package from hackage, say [ lens] [ ] , at any version, say 4.17.1,
18
18
you could run:
19
19
``` bash
20
- nix build ' (with import <nixpkgs> (import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz")).nixpkgsArgs; (haskell-nix.hackage-package { name = "lens"; version = "4.17.1"; })).components.library'
20
+ nix build ' (with import <nixpkgs> (import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz") {} ).nixpkgsArgs; (haskell-nix.hackage-package { name = "lens"; version = "4.17.1"; compiler-nix-name = "ghc8102 "; })).components.library'
21
21
```
22
22
This would build the (public) library component of the [ lens-4.17.1] [ ] package
23
23
from hackage.
@@ -28,7 +28,7 @@ The dependencies would be resolved against the most recent
28
28
[ hackage-index-state] [ ] which comes with your [ haskell.nix] [ ] checkout via the
29
29
[ hackage.nix] [ ] pin. A specific one can be specified as well:
30
30
``` bash
31
- nix build ' (with import <nixpkgs> (import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz")).nixpkgsArgs; (haskell-nix.hackage-package { name = "lens"; version = "4.17.1"; index-state = "2019-07-14T00:00:00Z"; })).components.library'
31
+ nix build ' (with import <nixpkgs> (import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz") {} ).nixpkgsArgs; (haskell-nix.hackage-package { name = "lens"; version = "4.17.1"; compiler-nix-name = "ghc8102 "; index-state = "2019-07-14T00:00:00Z"; })).components.library'
32
32
```
33
33
This would use the hackage index as of ` 2019-07-14T00:00:00Z ` to produce a
34
34
build plan for the [ lens-4.17.1] [ ] package.
0 commit comments