Skip to content

Commit 96d132e

Browse files
committed
Make the setup work with lorri.
1 parent 7330e70 commit 96d132e

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,7 @@ TSWLatexianTemp*
246246
*.temp
247247

248248
# Nix artifacts
249-
result*
249+
result*
250+
251+
# Files needed by lorri
252+
.envrc

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This repository contains instructions and a `nix` setup needed for building
88
To build the latex document run:
99

1010
```shell
11-
nix-shell --pure --run make
11+
nix-shell --run make
1212
```
1313

1414
The document can be built using `nix-build`. After running this command look
@@ -17,7 +17,7 @@ inside the `result` directory.
1717
For a continuous compilation of the `LaTeX` file run:
1818

1919
```shell
20-
nix-shell --pure --run "make watch"
20+
nix-shell --run "make watch"
2121
```
2222

2323
## Adding packages
@@ -28,7 +28,7 @@ Most likely you will need other `LaTeX` packages. These can be added in the
2828
Note that when adding a new package, it might be necessary to run:
2929

3030
```shell
31-
nix-shell --pure --run "make clean"
31+
nix-shell --run "make clean"
3232
```
3333

3434
## Managing versions using niv
@@ -37,3 +37,9 @@ The first step towards reproducible builds is specifying which package versions
3737
we need. This process is greatly simplified by
3838
[`niv`](https://github.com/nmattia/niv). Make sure you install it using nix to
3939
manage the `nixpkgs` versions as well as other sources you need to pin.
40+
41+
## Improve your workflow further by using lorri
42+
43+
If you install and configure [`lorri`](https://github.com/target/lorri) then it
44+
is not necessary to use the `nix-shell` command, and one can use `make`
45+
directly. See the project documentation for details on how to use it.

default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ stdenv.mkDerivation {
1717
latexmk
1818
;
1919
})
20-
20+
glibcLocales
2121
];
2222
src = ./.;
2323
buildPhase = "make";

shell.nix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import ./default.nix {}

0 commit comments

Comments
 (0)