1
0
mirror of https://github.com/IHaskell/IHaskell.git synced 2025-04-20 05:16:09 +00:00

.github/workflows/nix.yml: bump NixOS version ()

* .github/workflows/nix.yml: bump NixOS version

* README.md: update

* Drop release-9.0.nix
This commit is contained in:
Vaibhav Sagar 2023-07-27 21:17:26 +10:00 committed by GitHub
parent 36e6bd15d6
commit d4b571ba47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 14 deletions

@ -34,7 +34,6 @@ jobs:
strategy:
matrix:
versions:
- release: 'release-9.0.nix'
- release: 'release-9.2.nix'
- release: 'release-9.4.nix'
- release: 'release-9.6.nix'
@ -49,13 +48,13 @@ jobs:
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: |
nix-build --keep-going \
-I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-22.11 \
-I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-23.05 \
${{ matrix.versions.release }} \
--arg packages "haskellPackages: [ haskellPackages.ihaskell ]"
- if: matrix.versions.release != 'release-9.6.nix'
run: |
nix-shell \
-I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-22.11 \
-I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-23.05 \
-p jq --run \
'test/acceptance.nbconvert.sh result/bin/jupyter nbconvert'

@ -152,7 +152,7 @@ If you have the `nix` package manager installed, you can create an IHaskell
notebook environment with one command. For example:
```bash
$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-22.11 release.nix --argstr compiler ghc902 --arg packages "haskellPackages: [ haskellPackages.lens ]"
$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-23.05 release.nix --argstr compiler ghc928 --arg packages "haskellPackages: [ haskellPackages.lens ]"
<result path>
$ <result path>/bin/jupyter notebook
```
@ -165,7 +165,7 @@ prebuilt artifacts.
The IHaskell display modules are not loaded by default and have to be specified as additional packages:
```bash
$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-22.11 release.nix --argstr compiler ghc902 --arg packages "haskellPackages: [ haskellPackages.ihaskell-blaze haskellPackages.ihaskell-charts ]"
$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-23.05 release.nix --argstr compiler ghc928 --arg packages "haskellPackages: [ haskellPackages.ihaskell-blaze haskellPackages.ihaskell-charts ]"
```
For more examples of using IHaskell with Nix, see https://github.com/vaibhavsagar/notebooks.

@ -1,9 +0,0 @@
{ compiler ? "ghc902"
, nixpkgs ? import <nixpkgs> {}
, packages ? (_: [])
, pythonPackages ? (_: [])
, rtsopts ? "-M3g -N2"
, staticExecutable ? false
, systemPackages ? (_: [])
}:
import (./release.nix) { inherit compiler nixpkgs packages pythonPackages rtsopts systemPackages; }