Commit c768d8ff authored by Vera Aguilera Puerto's avatar Vera Aguilera Puerto
Browse files

space-station-14-launcher: init at 0.20.5

parent 3d2b0f14
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{ soundfont-fluid
, buildFHSEnv
, runCommand
, callPackage
}:

let
  space-station-14-launcher = callPackage ./space-station-14-launcher.nix { };

  # Workaround for hardcoded soundfont paths in downloaded engine assemblies.
  soundfont-fluid-fixed = runCommand "soundfont-fluid-fixed" { } ''
    mkdir -p "$out/share/soundfonts"
    ln -sf ${soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2 $out/share/soundfonts/FluidR3_GM.sf2
  '';
in
buildFHSEnv rec {
  name = "space-station-14-launcher-wrapped";

  targetPkgs = pkgs: [
    space-station-14-launcher
    soundfont-fluid-fixed
  ];

  runScript = "SS14.Launcher";

  extraInstallCommands = ''
    mkdir -p $out/share/applications
    ln -s ${space-station-14-launcher}/share/icons $out/share
    cp ${space-station-14-launcher}/share/applications/space-station-14-launcher.desktop "$out/share/applications"
    substituteInPlace "$out/share/applications/space-station-14-launcher.desktop" \
        --replace ${space-station-14-launcher.meta.mainProgram} ${meta.mainProgram}
  '';

  passthru = space-station-14-launcher.passthru // {
    unwrapped = space-station-14-launcher;
  };
  meta = space-station-14-launcher.meta // {
    mainProgram = name;
  };
}
+169 −0

File added.

Preview size limit exceeded, changes collapsed.

+143 −0

File added.

Preview size limit exceeded, changes collapsed.

+18 −0

File added.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Diff line number Diff line
@@ -36566,6 +36566,8 @@ with pkgs;
  # You still can override by passing more arguments.
  space-orbit = callPackage ../games/space-orbit { };
  space-station-14-launcher = callPackage ../games/space-station-14-launcher { };
  spring = callPackage ../games/spring { asciidoc = asciidoc-full; };
  springLobby = callPackage ../games/spring/springlobby.nix { };