mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
modrinth-app: 0.8.2 -> 0.8.9
This commit is contained in:
parent
fdf1f88ac0
commit
85c44b53a3
2870
pkgs/by-name/mo/modrinth-app-unwrapped/Cargo.lock
generated
2870
pkgs/by-name/mo/modrinth-app-unwrapped/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -3,17 +3,17 @@
|
||||
stdenv,
|
||||
apple-sdk_11,
|
||||
cacert,
|
||||
cargo-tauri_1,
|
||||
cargo-tauri,
|
||||
desktop-file-utils,
|
||||
fetchFromGitHub,
|
||||
libsoup,
|
||||
makeBinaryWrapper,
|
||||
nodejs,
|
||||
openssl,
|
||||
pkg-config,
|
||||
pnpm_9,
|
||||
rustPlatform,
|
||||
turbo,
|
||||
webkitgtk_4_0,
|
||||
webkitgtk_4_1,
|
||||
}:
|
||||
|
||||
let
|
||||
@ -21,44 +21,40 @@ let
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "modrinth-app-unwrapped";
|
||||
version = "0.8.2";
|
||||
version = "0.8.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "modrinth";
|
||||
repo = "code";
|
||||
rev = "a0bd011b808cdc998ef27960f610a8d99550c914";
|
||||
hash = "sha256-zpFJq7if5gOx7jvwpE73lqH4Vpif0MJMPIGsgtThKVk=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-DR1aPbSqAVhL/m/Maa3mPzNWwK4A1WvDd/PwEMVYn5g=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"sqlx-0.8.0-alpha.0" = "sha256-M1bumCMTzgDcQlgSYB6ypPp794e35ZSQCLzkbrFV4qY=";
|
||||
"tauri-plugin-single-instance-0.0.0" = "sha256-DZWTO2/LevbQJCJbeHbTc2rhesV3bNrs+BoYm2eMakA=";
|
||||
"wry-0.44.1" = "sha256-I1qkUVTu+Yqk1Imo1w5rG/lRSPLITF5BdcjBsPe+jXU=";
|
||||
};
|
||||
};
|
||||
|
||||
pnpmDeps = pnpm.fetchDeps {
|
||||
inherit pname version src;
|
||||
hash = "sha256-Ye9GHvkO+xZj87NIc1JLmhIJFqdkJMg7HvfTltx9krw=";
|
||||
hash = "sha256-murZ82LV2pGng/Cg08NoWr/mDIVECrf00utVrs6PKRg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cacert # required for turbo
|
||||
cargo-tauri_1.hook
|
||||
cacert # Required for turbo
|
||||
cargo-tauri.hook
|
||||
desktop-file-utils
|
||||
nodejs
|
||||
pkg-config
|
||||
pnpm.configHook
|
||||
];
|
||||
] ++ lib.optional stdenv.hostPlatform.isDarwin makeBinaryWrapper;
|
||||
|
||||
buildInputs =
|
||||
[ openssl ]
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
libsoup
|
||||
webkitgtk_4_0
|
||||
];
|
||||
++ lib.optional stdenv.hostPlatform.isLinux webkitgtk_4_1;
|
||||
|
||||
env = {
|
||||
TURBO_BINARY_PATH = lib.getExe turbo;
|
||||
@ -66,9 +62,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
postInstall =
|
||||
lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
mkdir -p "$out"/bin
|
||||
mv "$out"/Applications/Modrinth\ App.app/Contents/MacOS/Modrinth\ App "$out"/bin/modrinth-app
|
||||
ln -s "$out"/bin/modrinth-app "$out"/Applications/Modrinth\ App.app/Contents/MacOS/Modrinth\ App
|
||||
makeBinaryWrapper "$out"/Applications/Modrinth\ App.app/Contents/MacOS/Modrinth\ App "$out"/bin/ModrinthApp
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
desktop-file-edit \
|
||||
@ -77,7 +71,7 @@ rustPlatform.buildRustPackage rec {
|
||||
--set-key="Categories" --set-value="Game;ActionGame;AdventureGame;Simulation;" \
|
||||
--set-key="Keywords" --set-value="game;minecraft;mc;" \
|
||||
--set-key="StartupWMClass" --set-value="ModrinthApp" \
|
||||
$out/share/applications/modrinth-app.desktop
|
||||
$out/share/applications/Modrinth\ App.desktop
|
||||
'';
|
||||
|
||||
meta = {
|
||||
@ -92,7 +86,7 @@ rustPlatform.buildRustPackage rec {
|
||||
unfreeRedistributable
|
||||
];
|
||||
maintainers = with lib.maintainers; [ getchoo ];
|
||||
mainProgram = "modrinth-app";
|
||||
mainProgram = "ModrinthApp";
|
||||
platforms = with lib; platforms.linux ++ platforms.darwin;
|
||||
# This builds on architectures like aarch64, but the launcher itself does not support them yet.
|
||||
# Darwin is the only exception
|
||||
|
@ -1,15 +1,13 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
symlinkJoin,
|
||||
modrinth-app-unwrapped,
|
||||
addDriverRunpath,
|
||||
alsa-lib,
|
||||
flite,
|
||||
glib-networking,
|
||||
jdk8,
|
||||
jdk17,
|
||||
jdk21,
|
||||
jdk8,
|
||||
jdks ? [
|
||||
jdk8
|
||||
jdk17
|
||||
@ -18,9 +16,11 @@
|
||||
libGL,
|
||||
libjack2,
|
||||
libpulseaudio,
|
||||
modrinth-app-unwrapped,
|
||||
pipewire,
|
||||
symlinkJoin,
|
||||
udev,
|
||||
wrapGAppsHook3,
|
||||
wrapGAppsHook4,
|
||||
xorg,
|
||||
}:
|
||||
|
||||
@ -31,7 +31,7 @@ symlinkJoin rec {
|
||||
|
||||
paths = [ modrinth-app-unwrapped ];
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook3 ];
|
||||
nativeBuildInputs = [ wrapGAppsHook4 ];
|
||||
|
||||
buildInputs = [ glib-networking ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user