Nixos can't install ruby2d gem

107 views Asked by At

output shell.nix

When i execute gem install ruby2d in my nix-shell it can't, because nix has no fhs. Can u help me?

1

There are 1 answers

0
dibusure On BEST ANSWER

I was able to install libGL using the following script:

{ pkgs ? import <nixpkgs> {} }:
 
(pkgs.buildFHSUserEnv {
  name = "env";
  targetPkgs = pkgs: (with pkgs;
  [
    ruby_3_0
    bundler
    rake
    SDL.dev
    SDL2.dev
    SDL2_image
    SDL2_mixer
    SDL2_ttf
    libGL
 
    gccStdenv
    stdenv
    rbenv
    ]);
  runScript = "bash";
}).env