hmemcpy / milewski-ctfp-pdf

Bartosz Milewski's 'Category Theory for Programmers' unofficial PDF and LaTeX source
https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/
Other
10.84k stars 575 forks source link

nix-shell command doesn't work #274

Open chaotaklon opened 2 years ago

chaotaklon commented 2 years ago

In repository root directory $ nix-shell

got: unpacking 'https://github.com/edolstra/flake-compat/archive/cecfd08d13ddef8a79f277e67b8084bd9afa1586.tar.gz'... unpacking 'https://api.github.com/repos/numtide/flake-utils/tarball/a586a6b966d59f53f45a04f8891fbc017dc09dbe'... error: nix-shell requires a single derivation Try 'nix-shell --help' for more information.

Did I do it incorrectly?

OS: Mac Big Sur (M1) Nix version: 2.3.15

nakulthebuilder commented 2 years ago

Same problem for me, OS: Mac Big Sur (M1)

drupol commented 2 years ago

I think you should use Nix flakes (https://nixos.wiki/wiki/Flakes) and then run:

nix build .#ctfp
nix build .#ctfp-reason
nix build .#ctfp-scala
nix build .#ctfp-ocaml