Comments (12)
Tips:
- Do
nix flake show
to print all the available editions - Do
nix build .#<edition>
to build the edition you want.
In you case, it will be: nix build .#ctfp-scala
from milewski-ctfp-pdf.
You might need to enable support of flakes, which might not be enabled by default !
See the relevant section in here: https://nixos.wiki/wiki/Flakes
from milewski-ctfp-pdf.
No, you just need to enable Nix flakes :), see:
from milewski-ctfp-pdf.
Indeed, this is something to do ! I will try to focus on this soon !
from milewski-ctfp-pdf.
@drupol if you'd like I can write up the missing steps in the README.md and send a PR :)
from milewski-ctfp-pdf.
That would be truly amazing :) thanks !!!
from milewski-ctfp-pdf.
Hello,
Are you using Nix?
from milewski-ctfp-pdf.
Hi,
Thanks for the reply.
Just installed Nix, and I'm getting a different error now when running nix-shell
as per instructions:
milia@Newton:~/Documents/dev/latex/milewski-ctfp-pdf$ pwd
/home/milia/Documents/dev/latex/milewski-ctfp-pdf
milia@Newton:~/Documents/dev/latex/milewski-ctfp-pdf$ nix-shell
error: attribute 'flake-compat' missing
at /home/milia/Documents/dev/latex/milewski-ctfp-pdf/shell.nix:5:65:
4| fetchTarball {
5| url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
| ^
6| sha256 = lock.nodes.flake-compat.locked.narHash;
(use '--show-trace' to show detailed location information)
:|
Installed Nix with sh <(curl -L https://nixos.org/nix/install) --daemon
as suggested at the Nix installation site.
Thanks for the fast response !
ps: my shell is bash.
from milewski-ctfp-pdf.
Full trace:
(ctfp-scala) milia@Newton:~/Documents/dev/latex/milewski-ctfp-pdf$ nix-shell --show-trace
error: attribute 'flake-compat' missing
at /home/milia/Documents/dev/latex/milewski-ctfp-pdf/shell.nix:5:65:
4| fetchTarball {
5| url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
| ^
6| sha256 = lock.nodes.flake-compat.locked.narHash;
… while realising the context of a path
at /home/milia/Documents/dev/latex/milewski-ctfp-pdf/shell.nix:1:2:
1| (import
| ^
2| (
Thx !
from milewski-ctfp-pdf.
I might be doing something wrong:
(ctfp-scala) milia@Newton:~/Documents/dev/latex/milewski-ctfp-pdf$ nix build .#ctfp-scala
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
(ctfp-scala) milia@Newton:~/Documents/dev/latex/milewski-ctfp-pdf$ nix flake show
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
(ctfp-scala) milia@Newton:~/Documents/dev/latex/milewski-ctfp-pdf$ nix build .#ctfp-scala --extra-experimental-features nix-build
warning: unknown experimental feature 'nix-build'
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
(ctfp-scala) milia@Newton:~/Documents/dev/latex/milewski-ctfp-pdf$ nix build .#ctfp-scala --extra-experimental-features nix-command
error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override
from milewski-ctfp-pdf.
Thank you very much !
Your suggestion at the previous comment fixed the nix build .#ctfp-scala
issue, and now I can see packages getting downloaded.
I'll update this comment once the PDF is built !
It'd be nice & perhaps useful if you could add those steps on the README.md file for future users that encounter the same issue when using Nix to build the book :)
Thanks ! <3
EDIT: took a while on my old laptop, but the 566pgs amazing book of Bartosz was built like a charm !
from milewski-ctfp-pdf.
Closing the issue, feel free to reopen if needed.
from milewski-ctfp-pdf.
Related Issues (20)
- Page numbers not aligning with the pdf page number
- nix-shell command doesn't work HOT 2
- inter-word spacing with fontdimen
- Why not give Haskell example of implementation of coproduct?
- Are there readily built pdf files for the covers?
- Cannot build HOT 5
- Possibly a mistake that causes confusion HOT 2
- Missing figure HOT 1
- Chapter 3 - Section 3.5 Clarification
- chapter section numbering
- Haskell version being created when using scala command HOT 7
- Scala Snippet 23 in Chapter 3.4 is Not Desugared
- Releasing in Different Extensions HOT 1
- Update to Scala 3? HOT 1
- ASCII rendering of _|_ instead of Unicode HOT 4
- Use Rust as an alternative of C++? HOT 2
- Consider Formally verifying the properties in Category Theory using proof assistants.
- Result folder appears empty HOT 4
- A mistake in Section 6.3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from milewski-ctfp-pdf.