Skip to content

Commit

Permalink
Add ruby and irb syms for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 31, 2023
1 parent 90976ec commit 98e40cb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
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 "$@"

0 comments on commit 98e40cb

Please sign in to comment.