Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ruby and irb syms for now #229

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,6 @@
xdg.dataFile."homemade/bin/la".source = ../home/.local/share/homemade/bin/la.bash;
xdg.dataFile."homemade/bin/zj".source = ../home/.local/share/homemade/bin/zj.bash;
xdg.dataFile."homemade/bin/add_nix_channels".source = ../home/.local/share/homemade/bin/add_nix_channels.bash;
xdg.dataFile."homemade/bin/ruby".source = ../home/.local/share/homemade/bin/ruby.bash;
xdg.dataFile."homemade/bin/irb".source = ../home/.local/share/homemade/bin/irb.bash;
}
6 changes: 3 additions & 3 deletions home-manager/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
# pkgs.libyaml
# pkgs.openssl
#
# Don't include nixpkgs ruby, because of installing into .nix-profile hides
# adhoc use of https://github.com/bobvanderlinden/nixpkgs-ruby
# pkgs.ruby
# Don't include nixpkgs ruby for complex gems and other handlings
# Prefer adhoc use of https://github.com/bobvanderlinden/nixpkgs-ruby as follows
# `nix shell github:bobvanderlinden/nixpkgs-ruby#'"ruby-3.2"' --command irb`

# As a boardgamer
# pkgs.tesseract
Expand Down
5 changes: 5 additions & 0 deletions home/.local/share/homemade/bin/irb.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -euo pipefail

nix shell github:bobvanderlinden/nixpkgs-ruby#'"ruby-3.2"' --command irb "$@"
5 changes: 5 additions & 0 deletions home/.local/share/homemade/bin/ruby.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -euo pipefail

nix shell github:bobvanderlinden/nixpkgs-ruby#'"ruby-3.2"' --command ruby "$@"