-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
31 lines (28 loc) · 918 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
description = "Fix Planet Club - Organisational Documents";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
# don't look for a flake.nix file in this repository
# this tells Nix to retrieve this input as just source code
flake = false;
};
};
outputs = inputs: with inputs;
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in rec {
devShell = pkgs.mkShell {
buildInputs = [ pkgs.pandoc pkgs.pandoc-lua-filters ];
shellHook = ''
# Fix the location of the lua filters, so we can refer to it explicitly.
export LUA_FILTERS_DIR=${pkgs.pandoc-lua-filters}/share/pandoc/filters
echo "~ Fix Planet Club ~"
'';
};
}
);
}