Skip to content

Commit

Permalink
I drop ruby from default tool for now, because builiding it is a hard…
Browse files Browse the repository at this point in the history
… task
  • Loading branch information
kachick committed Mar 1, 2023
1 parent bc6da2a commit fb5b1da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .config/nixpkgs/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
pkgs.pngquant
pkgs.rustup
pkgs.crystal
pkgs.ruby_3_1
pkgs.zellij
pkgs.nixpkgs-fmt
pkgs.nil
pkgs.cargo-make
pkgs.hyperfine
pkgs.zoxide
pkgs.gnumake
pkgs.elmPackages.elm

# TODO: not yet officially supported macos, but works.
Expand All @@ -86,10 +86,12 @@
# Required in many asdf(rtx) plugins
pkgs.unzip

# Required to build ruby
pkgs.zlib
pkgs.libyaml
pkgs.openssl
pkgs.gnumake
# This section is just a note for my strggle
# Use https://github.com/bobvanderlinden/nixpkgs-ruby
# If needed official nixppkgs, specify `pkgs.ruby_3_1`
# Often failed to build ruby even if I enabled following dependencies
# pkgs.zlib
# pkgs.libyaml
# pkgs.openssl
];
}
7 changes: 3 additions & 4 deletions scripts/enable_nix-experimental-features.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
set -euxo pipefail

mkdir -p "$XDG_CONFIG_HOME/nix"
if [ -f "$XDG_CONFIG_HOME/nix/nix.conf" ]; then
rg '^experimental-features' "$XDG_CONFIG_HOME/nix/nix.conf" ||
echo 'experimental-features = nix-command flakes' >>"$XDG_CONFIG_HOME/nix/nix.conf"
fi
touch "$XDG_CONFIG_HOME/nix/nix.conf"
rg '^experimental-features' "$XDG_CONFIG_HOME/nix/nix.conf" ||
echo 'experimental-features = nix-command flakes' >>"$XDG_CONFIG_HOME/nix/nix.conf"

0 comments on commit fb5b1da

Please sign in to comment.