-2

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?

dibusure
  • 31
  • 1
  • 3
  • Why should one [not upload images of error and code](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors)? – spickermann Feb 12 '23 at 08:57

1 Answers1

1

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
Robin Daugherty
  • 7,115
  • 4
  • 45
  • 59
dibusure
  • 31
  • 1
  • 3