summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2023-03-04 17:50:21 +0100
committerMinijackson <minijackson@riseup.net>2023-03-04 17:50:21 +0100
commit4b11cd9d8add9b0fabc225ada3ac4a753ccc3766 (patch)
tree7c611938d6e799785ed081edd0c8ab4f80b6694b
parentbe8c9b200b7f51db1de96f018e9f0df7e4864c91 (diff)
downloadpandoc-nix-templates-4b11cd9d8add9b0fabc225ada3ac4a753ccc3766.tar.gz
pandoc-nix-templates-4b11cd9d8add9b0fabc225ada3ac4a753ccc3766.zip
add flake.lock, use italic for comments in perldoc pygments styleHEADmaster
-rw-r--r--flake.lock78
-rw-r--r--overlay.nix6
2 files changed, 84 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..319645f
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,78 @@
1{
2 "nodes": {
3 "beamertheme-metropolis": {
4 "flake": false,
5 "locked": {
6 "lastModified": 1533142502,
7 "narHash": "sha256-1HptXntlCUtXwhKuenuVjsj4K3oK5eOsNPZ9+nwSczg=",
8 "owner": "matze",
9 "repo": "mtheme",
10 "rev": "2fa6084b9d34fec9d2d5470eb9a17d0bf712b6c8",
11 "type": "github"
12 },
13 "original": {
14 "owner": "matze",
15 "repo": "mtheme",
16 "type": "github"
17 }
18 },
19 "draculaTheme": {
20 "flake": false,
21 "locked": {
22 "lastModified": 1647823152,
23 "narHash": "sha256-nhuG6QUJgoD2/BtKYrC6OmBSzIQeMNe5NNQqjG6d+Uw=",
24 "owner": "dracula",
25 "repo": "pygments",
26 "rev": "9cf371f24908e2b138cfcf0a87d0d654b4befd8f",
27 "type": "github"
28 },
29 "original": {
30 "owner": "dracula",
31 "repo": "pygments",
32 "type": "github"
33 }
34 },
35 "nixpkgs": {
36 "locked": {
37 "lastModified": 1677676435,
38 "narHash": "sha256-6FxdcmQr5JeZqsQvfinIMr0XcTyTuR7EXX0H3ANShpQ=",
39 "owner": "NixOS",
40 "repo": "nixpkgs",
41 "rev": "a08d6979dd7c82c4cef0dcc6ac45ab16051c1169",
42 "type": "github"
43 },
44 "original": {
45 "owner": "NixOS",
46 "ref": "nixos-unstable",
47 "repo": "nixpkgs",
48 "type": "github"
49 }
50 },
51 "pandoc-templates": {
52 "flake": false,
53 "locked": {
54 "lastModified": 1636017162,
55 "narHash": "sha256-6mnivyy0F3eqiZC6A0z2oSf40JfWS9U3HkKIW5g/NcQ=",
56 "owner": "minijackson",
57 "repo": "pandoc-templates",
58 "rev": "99e04d26dbd1a1056d8664c8cbeb96a06a1dbe11",
59 "type": "github"
60 },
61 "original": {
62 "owner": "minijackson",
63 "repo": "pandoc-templates",
64 "type": "github"
65 }
66 },
67 "root": {
68 "inputs": {
69 "beamertheme-metropolis": "beamertheme-metropolis",
70 "draculaTheme": "draculaTheme",
71 "nixpkgs": "nixpkgs",
72 "pandoc-templates": "pandoc-templates"
73 }
74 }
75 },
76 "root": "root",
77 "version": 7
78}
diff --git a/overlay.nix b/overlay.nix
index 85be7b7..b276251 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -6,6 +6,7 @@ final: prev:
6 inherit (inputs) pandoc-templates; 6 inherit (inputs) pandoc-templates;
7 7
8 pygments = prev.python3Packages.pygments.overrideAttrs (oldAttrs: { 8 pygments = prev.python3Packages.pygments.overrideAttrs (oldAttrs: {
9 # TODO: disable italic for non-normal comments for Perldoc style
9 postPatch = '' 10 postPatch = ''
10 cp ${inputs.draculaTheme}/dracula.py pygments/styles/ 11 cp ${inputs.draculaTheme}/dracula.py pygments/styles/
11 sed -i \ 12 sed -i \
@@ -17,6 +18,11 @@ final: prev:
17 -e 's/ffff00/ffcd00/' \ 18 -e 's/ffff00/ffcd00/' \
18 -e 's/008400/8fff8b/' \ 19 -e 's/008400/8fff8b/' \
19 pygments/styles/inkpot.py 20 pygments/styles/inkpot.py
21
22 sed -i \
23 -e 's/bg:.\+ //' \
24 -e 's/#228B22/italic #228B22/' \
25 pygments/styles/perldoc.py
20 ''; 26 '';
21 }); 27 });
22 28