Skip to content

Commit

Permalink
chore: bump Pandoc to 3.0.1 (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
plt-amy authored Jan 29, 2023
1 parent 47ca1d2 commit e3192be
Show file tree
Hide file tree
Showing 38 changed files with 304 additions and 30 deletions.
6 changes: 3 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
pkgs = import ./support/nix/nixpkgs.nix;
inherit (pkgs) lib;

our-ghc = pkgs.haskellPackages.ghcWithPackages (ps: with ps; [
our-ghc = pkgs.labHaskellPackages.ghcWithPackages (ps: with ps; [
shake directory tagsoup
text containers uri-encode
process aeson Agda pandoc SHA
Expand Down Expand Up @@ -48,8 +48,8 @@ let
] ++ (if interactive then [
our-ghc
] else [
haskellPackages.Agda.data
haskellPackages.pandoc.data
labHaskellPackages.Agda.data
labHaskellPackages.pandoc.data
]);
in
pkgs.stdenv.mkDerivation rec {
Expand Down
24 changes: 11 additions & 13 deletions support/nix/build-shake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
, our-ghc
, makeWrapper
, removeReferencesTo
, haskellPackages
, labHaskellPackages
, stdenv
, upx
, lua5_3
, gmp
, name
Expand Down Expand Up @@ -33,7 +32,7 @@ in
stdenv.mkDerivation {
inherit name;
src = nix-gitignore.gitignoreSource [] ../shake;
nativeBuildInputs = [ our-ghc makeWrapper removeReferencesTo upx ];
nativeBuildInputs = [ our-ghc makeWrapper removeReferencesTo ];
propagatedBuildInputs = [ lua5_3 gmp ];

buildPhase = ''
Expand All @@ -43,22 +42,21 @@ stdenv.mkDerivation {
installPhase = ''
mkdir -p $out/bin
strip ${main}
remove-references-to -t ${haskellPackages.pandoc-types} ${main}
remove-references-to -t ${haskellPackages.pandoc} ${main}
remove-references-to -t ${haskellPackages.Agda} ${main}
remove-references-to -t ${haskellPackages.shake} ${main}
remove-references-to -t ${haskellPackages.HTTP} ${main}
remove-references-to -t ${haskellPackages.js-flot} ${main}
remove-references-to -t ${haskellPackages.js-jquery} ${main}
remove-references-to -t ${haskellPackages.js-dgtable} ${main}
upx ${main}
remove-references-to -t ${labHaskellPackages.pandoc-types} ${main}
remove-references-to -t ${labHaskellPackages.pandoc} ${main}
remove-references-to -t ${labHaskellPackages.Agda} ${main}
remove-references-to -t ${labHaskellPackages.shake} ${main}
remove-references-to -t ${labHaskellPackages.HTTP} ${main}
remove-references-to -t ${labHaskellPackages.js-flot} ${main}
remove-references-to -t ${labHaskellPackages.js-jquery} ${main}
remove-references-to -t ${labHaskellPackages.js-dgtable} ${main}
cp ${main} $out/bin/${name}
wrapProgram $out/bin/${name} \
--prefix PATH : ${nodeDependencies}/bin \
--prefix NODE_PATH : ${nodeDependencies}/lib/node_modules
'';

disallowedReferences = with haskellPackages; [
disallowedReferences = with labHaskellPackages; [
shake directory tagsoup
text containers uri-encode
process aeson Agda pandoc SHA pandoc-types HTTP
Expand Down
2 changes: 2 additions & 0 deletions support/nix/dep/citeproc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/citeproc/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "jgm",
"repo": "citeproc",
"private": false,
"rev": "7e0a9a39811098577f037e12bd8a897e109e8753",
"sha256": "0r4x3sxvm25m7w3xccajk9w2n30q6nw9ppdw2d0vbj45f2kcfqw6"
}
12 changes: 12 additions & 0 deletions support/nix/dep/citeproc/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/commonmark-hs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/commonmark-hs/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "jgm",
"repo": "commonmark-hs",
"private": false,
"rev": "869bbce6b5e7e82bfce2ce36a38391176fb0fe4a",
"sha256": "0ycxbf5m9kxx0ikg53hqzk5hq79vd5xm8pm6li2k3jgx9pl75aks"
}
12 changes: 12 additions & 0 deletions support/nix/dep/commonmark-hs/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/doclayout/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/doclayout/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "jgm",
"repo": "doclayout",
"private": false,
"rev": "621dcce9daa744cd7a7e30d96f3abc3ad28ccadd",
"sha256": "0ilfc4sgr6dd8m88jgwvj94vnainb7f81qwcj0ncwhsq9vkikjh9"
}
12 changes: 12 additions & 0 deletions support/nix/dep/doclayout/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/doctemplates/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/doctemplates/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "jgm",
"repo": "doctemplates",
"private": false,
"rev": "f7db8cd54c108eeafa2048bb8135a0c68d858e68",
"sha256": "19h224a5c3viyx59j0laphmjw66bnh1r8d8vilr5i9dyyqkbgni8"
}
12 changes: 12 additions & 0 deletions support/nix/dep/doctemplates/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/gridtables/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/gridtables/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "tarleb",
"repo": "gridtables",
"private": false,
"rev": "644430f1b45629ed1fcf347635236553051b8c19",
"sha256": "0m3kapaffngplizy28z73z5lal1s7d3gr74p1n0f7mlknvbpy7nq"
}
12 changes: 12 additions & 0 deletions support/nix/dep/gridtables/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/jira-wiki-markup/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/jira-wiki-markup/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "tarleb",
"repo": "jira-wiki-markup",
"private": false,
"rev": "553d525355f75314d0c439cc77e11118e8736a73",
"sha256": "1xwqhvzr58cv5v0xwmyh9l936yw1akm72s698m2jgdgk71l05gc2"
}
12 changes: 12 additions & 0 deletions support/nix/dep/jira-wiki-markup/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/pandoc-types/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/pandoc-types/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "jgm",
"repo": "pandoc-types",
"private": false,
"rev": "8c0c60fd22f453136d456e301e68e397451e24dd",
"sha256": "0cb9yfrmrp3j09lh3kdl9kwiggblr34fdvyzlwhcan08wc7jnd7f"
}
12 changes: 12 additions & 0 deletions support/nix/dep/pandoc-types/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/pandoc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/pandoc/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "jgm",
"repo": "pandoc",
"private": false,
"rev": "dba779cf1ff11c9bfa82dbca1eef7362c6b183b0",
"sha256": "06ys7ix9i1vdwkwwh21mpj267d3gg8yfcpc887xw5c6w5af51y30"
}
12 changes: 12 additions & 0 deletions support/nix/dep/pandoc/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/skylighting/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
8 changes: 8 additions & 0 deletions support/nix/dep/skylighting/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"owner": "jgm",
"repo": "skylighting",
"branch": "master",
"private": false,
"rev": "876ef141746bc6e777bd0d4eed33ed31b528f9db",
"sha256": "1696n65l60frw0jig5pcicalnq9njq0bbd9cqq7xvx1qhffb3axl"
}
12 changes: 12 additions & 0 deletions support/nix/dep/skylighting/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/texmath/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
7 changes: 7 additions & 0 deletions support/nix/dep/texmath/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "jgm",
"repo": "texmath",
"private": false,
"rev": "d1f8cb4a2f62e240ff38129af448a3d3944cdbfa",
"sha256": "0lnqy8yk9fshggvzdci1rv0arzg93kkkihbggmgh1b5zvh5m19mn"
}
12 changes: 12 additions & 0 deletions support/nix/dep/texmath/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
2 changes: 2 additions & 0 deletions support/nix/dep/wai/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
8 changes: 8 additions & 0 deletions support/nix/dep/wai/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"owner": "yesodweb",
"repo": "wai",
"branch": "master",
"private": false,
"rev": "6d9bca5262b808d172abcebbe75a5a0f0aae4e1d",
"sha256": "12pcq8dhcbpz8wgrigc3d20zd97la8a3k6hvl2j6h46lsk92rfbb"
}
12 changes: 12 additions & 0 deletions support/nix/dep/wai/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
Loading

0 comments on commit e3192be

Please sign in to comment.