Skip to content

Commit

Permalink
Add pandoc-with-crossref nix attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lierdakil committed Aug 4, 2023
1 parent 347d613 commit f3f2246
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ You can also get the corresponding `pandoc` version installed via
nix profile install github:lierdakil/pandoc-crossref#pandoc
```

Since you will generally want both, there's an option to install both at the
same time, too:

```
nix profile install github:lierdakil/pandoc-crossref#pandoc-with-crossref
```

Aside from added convenience, this guarantees pandoc and pandoc-crossref
versions to be consistent across updates.

Finally, you can start a nix shell with both `pandoc` and `pandoc-crossref`
using

Expand Down
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,18 @@
win = (flake_ { ghc = "ghc928"; })
.packages."x86_64-w64-mingw32:pandoc-crossref:exe:pandoc-crossref";
pandoc = (hixProject {}).hsPkgs.pandoc-cli.components.exes.pandoc;
pandoc-with-crossref = pkgs.symlinkJoin {
name = "pandoc-with-crossref";
paths = with self.packages.${system}; [ default pandoc ];
};
};
apps = {
default = flake.apps."pandoc-crossref:exe:pandoc-crossref";
test = flake.apps."pandoc-crossref:test:test-pandoc-crossref";
test-integrative = flake.apps."pandoc-crossref:test:test-integrative";
};
devShells.default = pkgs.mkShell {
buildInputs = with self.packages.${system}; [ default pandoc ];
buildInputs = [ self.packages.${system}.pandoc-with-crossref ];
};
});

Expand Down

0 comments on commit f3f2246

Please sign in to comment.