Skip to content

Instantly share code, notes, and snippets.

@hanachin
Created May 18, 2026 07:34
Show Gist options
  • Select an option

  • Save hanachin/0f5d66741cd0242341a698822346b774 to your computer and use it in GitHub Desktop.

Select an option

Save hanachin/0f5d66741cd0242341a698822346b774 to your computer and use it in GitHub Desktop.
flake.nix to build ruby/ruby
{
description = "Development shell for building CRuby";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
{
devShells.default =
let
pkgs = import nixpkgs { inherit system; };
in pkgs.mkShell {
packages = with pkgs; [
autoconf
cargo
clang
git
gmp
gperf
libffi
libyaml
openssl
pkg-config
readline
ruby
rustc
zlib
];
};
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment