From c2699a996a0b455d01fb76374eb65da8aa8cd434 Mon Sep 17 00:00:00 2001 From: Zitrone Date: Thu, 15 Aug 2024 05:59:43 +0200 Subject: [PATCH 1/2] steam-run: mark as free (only the dependencies are unfree) --- pkgs/games/steam/fhsenv.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index 8b504b6c55b6..0862ff0c63c0 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -344,6 +344,10 @@ in buildFHSEnv rec { description = "Run commands in the same FHS environment that is used for Steam"; mainProgram = "steam-run"; name = "steam-run"; + # steam-run itself is just a script that lives in nixpkgs (which is licensed under MIT). + # steam is a dependency and already unfree, so normal steam-run will not install without + # allowing unfree packages or appropriate `allowUnfreePredicate` rules. + license = lib.licenses.mit; }; }; } From bb926b3af94737085b54bec8f2610d46c832b5ab Mon Sep 17 00:00:00 2001 From: Zitrone Date: Thu, 15 Aug 2024 06:07:11 +0200 Subject: [PATCH 2/2] steam-run-free: add alias from steamPackages.steam-fhsenv-without-steam.run --- pkgs/top-level/all-packages.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 150c5785dcc0..cc294f221b4a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -36542,6 +36542,8 @@ with pkgs; steam-run = steam.run; + steam-run-free = steamPackages.steam-fhsenv-without-steam.run; + steam-tui = callPackage ../games/steam-tui { }; steamcmd = steamPackages.steamcmd;