-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.nix
More file actions
31 lines (26 loc) · 724 Bytes
/
Copy pathshell.nix
File metadata and controls
31 lines (26 loc) · 724 Bytes
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
{ pkgs ? import <nixpkgs> {} }:
let
resilientVersion = builtins.replaceStrings [ "\n" " " ] [ "" "" ]
(builtins.readFile ./.resilient-version);
build = pkgs.writeShellScriptBin "build" ''
exec sile --luarocks-tree lua_modules -u inputters.silm ddd-reference.silm "$@"
'';
in
pkgs.mkShell {
buildInputs = with pkgs; [
sile
lua5_1
luarocks
gcc
gentium-plus
build
];
FONTCONFIG_FILE = pkgs.makeFontsConf {
fontDirectories = [ pkgs.gentium-plus ];
};
shellHook = ''
echo "Installing resilient.sile ${resilientVersion}..."
luarocks --lua-version 5.1 --tree lua_modules install resilient.sile ${resilientVersion}
echo "Run 'build' to generate the PDF."
'';
}