this post was submitted on 11 Sep 2025
5 points (100.0% liked)

Nix / NixOS

2469 readers
15 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

Fair criticism, although the larger discussion thread this garnered earlier this year was an interesting read. Over +300 comments:

you are viewing a single comment's thread
view the rest of the comments
[–] ruffsl@programming.dev 1 points 2 weeks ago

The comment thread sparked a few new questions for me.

That will likely soon stop working because steam-run is no longer a grab bag for literally every library out there.

What recently changed with steam-run?

Is using pkgs.appimageTools.defaultFhsEnvArgs with pkgs.buildFHSUserEnv a suitable alternative?

   #!/usr/bin/env nix-shell

   { pkgs ? import <nixpkgs> { } }:

  (
    let base = pkgs.appimageTools.defaultFhsEnvArgs; in
    pkgs.buildFHSUserEnv (base // {
      name = "FHS";
      targetPkgs = pkgs: (with pkgs; [
        /* add additional packages here e.g */
        pcre
        tzdata
      ]);
      runScript = "bash";
      extraOutputsToInstall = [ "dev" ];
    })
  ).env