Override nixpkgs for stack

this make sure both ghc 8.10.1 and 8.10.2 are available for nixos
This commit is contained in:
iori 2020-12-13 18:33:39 +01:00
parent db4906dd6c
commit 7073c22ea0
4 changed files with 15 additions and 4 deletions

View File

@ -60,14 +60,14 @@ Then it needs to parse the hie files and recover any useful information.
Build with:
```bash
stack build izuna-builder --stack-yaml=stack-8.10.1.yaml
stack build izuna-builder --stack-yaml=stack-8.10.1.yaml --no-nix
```
izuna-server is a simple server that returns the processed hie files for the plugin.
Build with:
```bash
stack build izuna-server --stack-yaml=stack-8.10.1.yaml
stack build izuna-server --stack-yaml=stack-8.10.1.yaml --no-nix
```
## Inspirations

9
nixpkgs.nix Normal file
View File

@ -0,0 +1,9 @@
let
rev = "2c0f6135aab77ff942b615228882c7dd996e0882";
extractedTarball = fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
sha256 = "sha256:00yg8dck4ymcifrxsknnpms52n16xnb8yiqjkby002mbm2aflf45";
};
in
# extractedTarball will be a directory here, and 'import' will automatically append /default.nix here
import extractedTarball

View File

@ -15,4 +15,5 @@ extra-deps:
nix:
enable: true
packages: [ zlib ]
packages: [ zlib ]
path: [nixpkgs=./nixpkgs.nix]

View File

@ -8,4 +8,5 @@ extra-deps:
nix:
enable: true
packages: [ zlib ]
packages: [ zlib ]
path: [nixpkgs=./nixpkgs.nix]