~zainab/blog

d23c8226b26af3989eab94d5df0d30a3357b7eda — zainab-ali 6 months ago 078df93
Upgrade nixos
2 files changed, 6 insertions(+), 6 deletions(-)

M .build.yml
M nix/mdoc.bash
M .build.yml => .build.yml +2 -2
@@ 1,6 1,6 @@
image: nixos/20.09
image: nixos/21.11
repositories:
  nixpkgs: https://channels.nixos.org/nixos-20.09
  nixpkgs: https://channels.nixos.org/nixos-21.11
packages:
  - nixpkgs.racket
secrets:

M nix/mdoc.bash => nix/mdoc.bash +4 -4
@@ 4,16 4,16 @@
# It fetches dependencies with coursier and runs mdoc

set -ex
fs2=$(coursier fetch -p co.fs2:fs2-core_3:3.1.3)
catseffect=$(coursier fetch -p org.typelevel:cats-effect_3:3.3.2)
fs2=$(cs fetch -p co.fs2:fs2-core_3:3.1.3)
catseffect=$(cs fetch -p org.typelevel:cats-effect_3:3.3.2)

# FIXME: coursier doesn't finish when there is an `error` snippet in mdoc
# Hack around this by timing out once we think it's finished
timeout 1m coursier launch org.scalameta:mdoc_3:2.2.23 -- \
timeout 1m cs launch org.scalameta:mdoc_3:2.2.23 -- \
	 --classpath $fs2 \
	 --in src/chapters/fs2/snippets.md \
	 --out src/chapters/fs2/snippets.out.md || true
timeout 3m coursier launch org.scalameta:mdoc_3:2.2.23 -- \
timeout 3m cs launch org.scalameta:mdoc_3:2.2.23 -- \
	 --classpath $catseffect \
	 --in src/chapters/2022-02-12-cats-effect-ioruntime/snippets.md \
	 --out src/chapters/2022-02-12-cats-effect-ioruntime/snippets.out.md || true