Skip to content

Commit

Permalink
Update Nix package to 0.24.0 (space-wizards#108)
Browse files Browse the repository at this point in the history
* Update flake lock

* Update Nix package to 0.24.0
  • Loading branch information
gradientvera authored Oct 21, 2023
1 parent fe327cb commit 6e2820f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
, gdk-pixbuf
}:
let
version = "0.23.0";
version = "0.24.0";
pname = "space-station-14-launcher";
in
buildDotnetModule rec {
Expand All @@ -45,7 +45,7 @@ buildDotnetModule rec {
owner = "space-wizards";
repo = "SS14.Launcher";
rev = "v${version}";
hash = "sha256-ZQinZBWAsOUbZ8Ew2jV0O+aQP5PzYzbon+AWShtX/J0=";
hash = "sha256-n0OiNxw9QDibX5HBSzq6jdOxyUd0bPkjKd+mtb/S/BY=";
fetchSubmodules = true;
};

Expand Down
18 changes: 9 additions & 9 deletions nix/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}:

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

# Workaround for hardcoded soundfont paths in downloaded engine assemblies.
soundfont-fluid-fixed = runCommand "soundfont-fluid-fixed" { } ''
Expand All @@ -14,27 +14,27 @@ let
'';
in
buildFHSEnv rec {
name = "space-station-14-launcher-wrapped";
name = "${launcher.pname}-wrapped-${launcher.version}";

targetPkgs = pkgs: [
space-station-14-launcher
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"
ln -s ${launcher}/share/icons $out/share
cp ${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}
--replace ${launcher.meta.mainProgram} ${meta.mainProgram}
'';

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

0 comments on commit 6e2820f

Please sign in to comment.