Merge pull request #178009 from bbenno/update-gollum

gollum: 5.2.3 -> 5.3.0
This commit is contained in:
Sandro 2022-06-17 21:08:57 +02:00 committed by GitHub
commit 0e6db671a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 86 additions and 19 deletions

View file

@ -47,7 +47,7 @@ in
user-icons = mkOption { user-icons = mkOption {
type = types.nullOr (types.enum [ "gravatar" "identicon" ]); type = types.nullOr (types.enum [ "gravatar" "identicon" ]);
default = null; default = null;
description = "User icons for history view"; description = "Enable specific user icons for history view";
}; };
emoji = mkOption { emoji = mkOption {
@ -68,6 +68,12 @@ in
description = "Disable editing pages"; description = "Disable editing pages";
}; };
local-time = mkOption {
type = types.bool;
default = false;
description = "Use the browser's local timezone instead of the server's for displaying dates.";
};
branch = mkOption { branch = mkOption {
type = types.str; type = types.str;
default = "master"; default = "master";
@ -123,6 +129,7 @@ in
${optionalString cfg.emoji "--emoji"} \ ${optionalString cfg.emoji "--emoji"} \
${optionalString cfg.h1-title "--h1-title"} \ ${optionalString cfg.h1-title "--h1-title"} \
${optionalString cfg.no-edit "--no-edit"} \ ${optionalString cfg.no-edit "--no-edit"} \
${optionalString cfg.local-time "--local-time"} \
${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \ ${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \
${optionalString (cfg.user-icons != null) "--user-icons ${cfg.user-icons}"} \ ${optionalString (cfg.user-icons != null) "--user-icons ${cfg.user-icons}"} \
${cfg.stateDir} ${cfg.stateDir}

View file

@ -13,13 +13,15 @@ GEM
gemojione (4.3.3) gemojione (4.3.3)
json json
github-markup (4.0.1) github-markup (4.0.1)
gollum (5.2.3) gollum (5.3.0)
gemojione (~> 4.1) gemojione (~> 4.1)
gollum-lib (~> 5.1) gollum-lib (~> 5.1)
i18n (~> 1.8)
kramdown (~> 2.3) kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1.0) kramdown-parser-gfm (~> 1.1.0)
mustache-sinatra (~> 1.0) mustache-sinatra (>= 1.0.1, < 2)
octicons (~> 12.0) octicons (~> 12.0)
rdoc (~> 6)
rss (~> 0.2.9) rss (~> 0.2.9)
sass (~> 3.5) sass (~> 3.5)
sinatra (~> 2.0) sinatra (~> 2.0)
@ -30,7 +32,7 @@ GEM
uglifier (~> 4.2) uglifier (~> 4.2)
useragent (~> 0.16.2) useragent (~> 0.16.2)
webrick (~> 1.7) webrick (~> 1.7)
gollum-lib (5.1.3) gollum-lib (5.2)
gemojione (~> 4.1) gemojione (~> 4.1)
github-markup (~> 4.0) github-markup (~> 4.0)
gollum-rugged_adapter (~> 1.0) gollum-rugged_adapter (~> 1.0)
@ -43,6 +45,8 @@ GEM
mime-types (~> 1.15) mime-types (~> 1.15)
rugged (~> 1.1.0) rugged (~> 1.1.0)
htmlentities (4.3.4) htmlentities (4.3.4)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
json (2.6.2) json (2.6.2)
kramdown (2.4.0) kramdown (2.4.0)
rexml rexml
@ -66,15 +70,19 @@ GEM
nokogiri (>= 1.6.3.1) nokogiri (>= 1.6.3.1)
org-ruby (0.9.12) org-ruby (0.9.12)
rubypants (~> 0.2) rubypants (~> 0.2)
psych (4.0.4)
stringio
racc (1.6.0) racc (1.6.0)
rack (2.2.3) rack (2.2.3.1)
rack-protection (2.2.0) rack-protection (2.2.0)
rack rack
rb-fsevent (0.11.1) rb-fsevent (0.11.1)
rb-inotify (0.10.1) rb-inotify (0.10.1)
ffi (~> 1.0) ffi (~> 1.0)
rdoc (6.4.0)
psych (>= 4.0.0)
rexml (3.2.5) rexml (3.2.5)
rouge (3.28.0) rouge (3.29.0)
rss (0.2.9) rss (0.2.9)
rexml rexml
ruby2_keywords (0.0.5) ruby2_keywords (0.0.5)
@ -101,6 +109,7 @@ GEM
rack (> 1, < 3) rack (> 1, < 3)
sprockets-helpers (1.4.0) sprockets-helpers (1.4.0)
sprockets (>= 2.2) sprockets (>= 2.2)
stringio (3.0.2)
therubyrhino (2.1.2) therubyrhino (2.1.2)
therubyrhino_jar (>= 1.7.4, < 1.7.9) therubyrhino_jar (>= 1.7.4, < 1.7.9)
therubyrhino_jar (1.7.8) therubyrhino_jar (1.7.8)
@ -111,7 +120,7 @@ GEM
execjs (>= 0.3.0, < 3) execjs (>= 0.3.0, < 3)
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.8.1) unf_ext (0.0.8.2)
useragent (0.16.10) useragent (0.16.10)
webrick (1.7.0) webrick (1.7.0)
wikicloth (0.8.3) wikicloth (0.8.3)
@ -133,4 +142,4 @@ DEPENDENCIES
wikicloth wikicloth
BUNDLED WITH BUNDLED WITH
2.2.33 2.3.9

View file

@ -101,15 +101,15 @@
version = "4.0.1"; version = "4.0.1";
}; };
gollum = { gollum = {
dependencies = ["gemojione" "gollum-lib" "kramdown" "kramdown-parser-gfm" "mustache-sinatra" "octicons" "rss" "sass" "sinatra" "sinatra-contrib" "sprockets" "sprockets-helpers" "therubyrhino" "uglifier" "useragent" "webrick"]; dependencies = ["gemojione" "gollum-lib" "i18n" "kramdown" "kramdown-parser-gfm" "mustache-sinatra" "octicons" "rdoc" "rss" "sass" "sinatra" "sinatra-contrib" "sprockets" "sprockets-helpers" "therubyrhino" "uglifier" "useragent" "webrick"];
groups = ["default"]; groups = ["default"];
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "1zdpl8rj6r2psigcjavwi57ljriyakh0ydfai9c3q85jzc005bax"; sha256 = "1xz7d3xfc536njk0fg4inmzzy350c5bjp237vghrcky8azc6xl7k";
type = "gem"; type = "gem";
}; };
version = "5.2.3"; version = "5.3.0";
}; };
gollum-lib = { gollum-lib = {
dependencies = ["gemojione" "github-markup" "gollum-rugged_adapter" "loofah" "nokogiri" "octicons" "rouge" "twitter-text"]; dependencies = ["gemojione" "github-markup" "gollum-rugged_adapter" "loofah" "nokogiri" "octicons" "rouge" "twitter-text"];
@ -117,10 +117,10 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "1samwcxjr1z0sy8a87xvp0z4qx0fc2irzx568s6q1yxcba9nqqv2"; sha256 = "1acxi4zjdmxlj7hzv9fjqilqngcwjvzhk3khnykdfvnb0l6l4xbs";
type = "gem"; type = "gem";
}; };
version = "5.1.3"; version = "5.2";
}; };
gollum-rugged_adapter = { gollum-rugged_adapter = {
dependencies = ["mime-types" "rugged"]; dependencies = ["mime-types" "rugged"];
@ -143,6 +143,17 @@
}; };
version = "4.3.4"; version = "4.3.4";
}; };
i18n = {
dependencies = ["concurrent-ruby"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0b2qyvnk4yynlg17ymkq4g5xgr275637fhl1mjh0valw3cb1fhhg";
type = "gem";
};
version = "1.10.0";
};
json = { json = {
groups = ["default"]; groups = ["default"];
platforms = []; platforms = [];
@ -281,6 +292,17 @@
}; };
version = "0.9.12"; version = "0.9.12";
}; };
psych = {
dependencies = ["stringio"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0c2lz03mkn43rf2a2xiy8vqgir1dvds0a0fpx7m7my6a21ygryw2";
type = "gem";
};
version = "4.0.4";
};
racc = { racc = {
groups = ["default"]; groups = ["default"];
platforms = []; platforms = [];
@ -296,10 +318,10 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0i5vs0dph9i5jn8dfc6aqd6njcafmb20rwqngrf759c9cvmyff16"; sha256 = "1b1qsg0yfargdhmpapp2d3mlxj82wyygs9nj74w0r03diyi8swlc";
type = "gem"; type = "gem";
}; };
version = "2.2.3"; version = "2.2.3.1";
}; };
rack-protection = { rack-protection = {
dependencies = ["rack"]; dependencies = ["rack"];
@ -333,6 +355,17 @@
}; };
version = "0.10.1"; version = "0.10.1";
}; };
rdoc = {
dependencies = ["psych"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1bxzcvxvrmb1ngxz0bgz1va4q9c4w8m6gc8lmdhi6gnvaaf98gsy";
type = "gem";
};
version = "6.4.0";
};
RedCloth = { RedCloth = {
groups = ["default"]; groups = ["default"];
platforms = []; platforms = [];
@ -358,10 +391,10 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "080fswzii68wnbsg7pgq55ba7p289sqjlxwp4vch0h32qy1f8v8d"; sha256 = "17dhzc9hfzd8x18hfsvn9rsp4jg18wdfsdy3a5p99y5dhfh1321r";
type = "gem"; type = "gem";
}; };
version = "3.28.0"; version = "3.29.0";
}; };
rss = { rss = {
dependencies = ["rexml"]; dependencies = ["rexml"];
@ -470,6 +503,16 @@
}; };
version = "1.4.0"; version = "1.4.0";
}; };
stringio = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1jns0x5lbafyqyx7pgzfs6i4ykc7p6zg7gxa6hd82w40n6z9rdvi";
type = "gem";
};
version = "3.0.2";
};
therubyrhino = { therubyrhino = {
dependencies = ["therubyrhino_jar"]; dependencies = ["therubyrhino_jar"];
groups = ["default"]; groups = ["default"];
@ -539,10 +582,10 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0bf120xbq23zjyf8zi8h1576d71g58srr8rndig0whn10w72vrxz"; sha256 = "1yj2nz2l101vr1x9w2k83a0fag1xgnmjwp8w8rw4ik2rwcz65fch";
type = "gem"; type = "gem";
}; };
version = "0.0.8.1"; version = "0.0.8.2";
}; };
useragent = { useragent = {
groups = ["default"]; groups = ["default"];

View file

@ -294,6 +294,14 @@ in
propagatedBuildInputs = [ gobject-introspection wrapGAppsHook glib ]; propagatedBuildInputs = [ gobject-introspection wrapGAppsHook glib ];
}; };
gollum = attrs: {
dontBuild = false;
postPatch = ''
substituteInPlace bin/gollum \
--replace "/usr/bin/env -S ruby" "${ruby}/bin/ruby"
'';
};
grpc = attrs: { grpc = attrs: {
nativeBuildInputs = [ pkg-config ] ++ lib.optional stdenv.isDarwin libtool; nativeBuildInputs = [ pkg-config ] ++ lib.optional stdenv.isDarwin libtool;
buildInputs = [ openssl ]; buildInputs = [ openssl ];