From 4650f41d1b16881da729dca462ba53e8bd46c058 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 6 Apr 2023 16:53:04 +0800 Subject: [PATCH] project: add Ruby gems into shell env --- gemset.nix | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++ shell.nix | 10 +++- 2 files changed, 148 insertions(+), 1 deletion(-) create mode 100644 gemset.nix diff --git a/gemset.nix b/gemset.nix new file mode 100644 index 0000000..e4ee66f --- /dev/null +++ b/gemset.nix @@ -0,0 +1,139 @@ +{ + asciidoctor = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "11z3vnd8vh3ny1vx69bjrbck5b2g8zsbj94npyadpn7fdp8y3ldv"; + type = "gem"; + }; + version = "2.0.18"; + }; + asciidoctor-bibtex = { + dependencies = ["asciidoctor" "bibtex-ruby" "citeproc-ruby" "csl-styles" "latex-decode"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0fx80bpykixvnlscyz2c4dnjr1063r5ar7j1zn2977vsr8fi8ial"; + type = "gem"; + }; + version = "0.8.0"; + }; + asciidoctor-custom-extensions = { + dependencies = ["asciidoctor"]; + groups = ["default"]; + platforms = []; + source = { + path = ./.; + type = "path"; + }; + version = "1.0.0"; + }; + asciidoctor-rouge = { + dependencies = ["asciidoctor" "rouge"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "197sbzs9km58pgfqdnnglhqr7anhb0m330cv1vxfc3s2qz106zjz"; + type = "gem"; + }; + version = "0.4.0"; + }; + bibtex-ruby = { + dependencies = ["latex-decode"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0adh2x935r69nm8qmns5fjsjw034xlyaqddzza2jr2npvf41g34r"; + type = "gem"; + }; + version = "5.1.6"; + }; + citeproc = { + dependencies = ["namae"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "13vl5sjmksk5a8kjcqnjxh7kn9gn1n4f9p1rvqfgsfhs54p0m6l2"; + type = "gem"; + }; + version = "1.0.10"; + }; + citeproc-ruby = { + dependencies = ["citeproc" "csl"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0a8ahyhhmdinl4kcyv51r74ipnclmfyz4zjv366dns8v49n5vkk3"; + type = "gem"; + }; + version = "1.1.14"; + }; + csl = { + dependencies = ["namae" "rexml"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0n8iqmzvvqy2b1wfr4c7yj28x4z3zgm36628y8ybl49dgnmjycrk"; + type = "gem"; + }; + version = "1.6.0"; + }; + csl-styles = { + dependencies = ["csl"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0l29qlk7i74088fpba5iqhhgiqkj7glcmc42nbmvgqysx577nag8"; + type = "gem"; + }; + version = "1.0.1.11"; + }; + latex-decode = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1y5xn3zwghpqr6lvs4s0mn5knms8zw3zk7jb58zkkiagb386nq72"; + type = "gem"; + }; + version = "0.4.0"; + }; + namae = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1j3nl1klkx3gymrdxfc1hlq4a8qlvhhl9aj5v1v08b9fz27sky0l"; + type = "gem"; + }; + version = "1.1.1"; + }; + rexml = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "08ximcyfjy94pm1rhcx04ny1vx2sk0x4y185gzn86yfsbzwkng53"; + type = "gem"; + }; + version = "3.2.5"; + }; + rouge = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1dnfkrk8xx2m8r3r9m2p5xcq57viznyc09k7r3i4jbm758i57lx3"; + type = "gem"; + }; + version = "3.30.0"; + }; +} diff --git a/shell.nix b/shell.nix index 3ed5ddc..9663c2b 100644 --- a/shell.nix +++ b/shell.nix @@ -2,9 +2,17 @@ with pkgs; +let + gems = bundlerEnv { + name = "hugo-website-gems"; + gemdir = ./.; + }; +in mkShell { packages = [ - asciidoctor + gems + gems.wrappedRuby + git go hugo