Skip to content

Commit

Permalink
modrinth-app: don't use broken recursion structure
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Jul 12, 2024
1 parent d18da92 commit b5d7392
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkgs/by-name/mo/modrinth-app-unwrapped/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
rustPlatform,
buildGoModule,
nix-update-script,
modrinth-app-unwrapped,
cargo-tauri,
desktop-file-utils,
esbuild,
Expand All @@ -24,7 +23,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "modrinth";
repo = "theseus";
rev = "v${modrinth-app-unwrapped.version}";
rev = "v${version}";
sha256 = "sha256-JWR0e2vOBvOLosr22Oo2mAlR0KAhL+261RRybhNctlM=";
};

Expand Down Expand Up @@ -73,7 +72,7 @@ rustPlatform.buildRustPackage rec {
Darwin = "app";
}
.${stdenv.hostPlatform.uname.system}
or (builtins.throw "No tauri bundle available for ${stdenv.hostPlatform.uname.system}!");
or (throw "No tauri bundle available for ${stdenv.hostPlatform.uname.system}!");

ESBUILD_BINARY_PATH = lib.getExe (
esbuild.override {
Expand Down Expand Up @@ -133,14 +132,14 @@ rustPlatform.buildRustPackage rec {
A unique, open source launcher that allows you to play your favorite mods,
and keep them up to date, all in one neat little package
'';
mainProgram = "modrinth-app";
homepage = "https://modrinth.com";
changelog = "https://github.com/modrinth/theseus/releases/tag/v${modrinth-app-unwrapped.version}";
changelog = "https://github.com/modrinth/theseus/releases/tag/v${version}";
license = with lib.licenses; [
gpl3Plus
unfreeRedistributable
];
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "modrinth-app";
platforms = with lib; platforms.linux ++ platforms.darwin;
# this builds on architectures like aarch64, but the launcher itself does not support them yet
broken = !stdenv.isx86_64;
Expand Down

0 comments on commit b5d7392

Please sign in to comment.