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