project: add Ruby gems into shell env

This commit is contained in:
Gabriel Arazas 2023-04-06 16:53:04 +08:00
parent 788a91b553
commit 4650f41d1b
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 148 additions and 1 deletions

139
gemset.nix Normal file
View File

@ -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";
};
}

View File

@ -2,9 +2,17 @@
with pkgs; with pkgs;
let
gems = bundlerEnv {
name = "hugo-website-gems";
gemdir = ./.;
};
in
mkShell { mkShell {
packages = [ packages = [
asciidoctor gems
gems.wrappedRuby
git git
go go
hugo hugo