Created
May 18, 2026 07:34
-
-
Save hanachin/0f5d66741cd0242341a698822346b774 to your computer and use it in GitHub Desktop.
flake.nix to build ruby/ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| 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