mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-31 09:58:53 -08:00
feat: add modrinth-app-bin
This commit is contained in:
parent
164bf0cd2e
commit
56c5fa261e
3 changed files with 56 additions and 10 deletions
|
@ -44,16 +44,17 @@ in
|
||||||
mangojuice
|
mangojuice
|
||||||
r2modman
|
r2modman
|
||||||
|
|
||||||
(modrinth-app.overrideAttrs (oldAttrs: {
|
modrinth-app-bin
|
||||||
buildCommand =
|
# (modrinth-app.overrideAttrs (oldAttrs: {
|
||||||
''
|
# buildCommand =
|
||||||
gappsWrapperArgs+=(
|
# ''
|
||||||
--set GDK_BACKEND x11
|
# gappsWrapperArgs+=(
|
||||||
--set WEBKIT_DISABLE_DMABUF_RENDERER 1
|
# --set GDK_BACKEND x11
|
||||||
)
|
# --set WEBKIT_DISABLE_DMABUF_RENDERER 1
|
||||||
''
|
# )
|
||||||
+ oldAttrs.buildCommand;
|
# ''
|
||||||
}))
|
# + oldAttrs.buildCommand;
|
||||||
|
# }))
|
||||||
|
|
||||||
(wine-discord-ipc-bridge.overrideAttrs (
|
(wine-discord-ipc-bridge.overrideAttrs (
|
||||||
final: prev: {
|
final: prev: {
|
||||||
|
@ -102,6 +103,7 @@ in
|
||||||
liminalOS.config.extraUnfreePackages = lib.mkIf config.liminalOS.config.allowUnfree [
|
liminalOS.config.extraUnfreePackages = lib.mkIf config.liminalOS.config.allowUnfree [
|
||||||
"modrinth-app"
|
"modrinth-app"
|
||||||
"modrinth-app-unwrapped"
|
"modrinth-app-unwrapped"
|
||||||
|
"ModrinthApp"
|
||||||
"steam"
|
"steam"
|
||||||
"steam-unwrapped"
|
"steam-unwrapped"
|
||||||
];
|
];
|
||||||
|
|
43
pkgs/by-name/modrinth-app-bin/default.nix
Normal file
43
pkgs/by-name/modrinth-app-bin/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
appimageTools,
|
||||||
|
fetchurl,
|
||||||
|
lib,
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
pname = "ModrinthApp";
|
||||||
|
version = "0.9.2";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://launcher-files.modrinth.com/versions/${version}/linux/Modrinth%20App_${version}_amd64.AppImage";
|
||||||
|
hash = "sha256-lL2FVNeb/IUNFC/BjWNOk3cDIxY2f+eQj0QcnHxwVfw=";
|
||||||
|
};
|
||||||
|
appimageContents = appimageTools.extractType1 { inherit pname version src; };
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
inherit pname src version;
|
||||||
|
|
||||||
|
extraInstallCommands = ''
|
||||||
|
mkdir -p $out/share/applications
|
||||||
|
mkdir -p $out/share/icons/hicolor/256x256@2/apps
|
||||||
|
mkdir -p $out/share/icons/hicolor/128x128/apps
|
||||||
|
|
||||||
|
ln -s ${appimageContents}/'Modrinth App.desktop' $out/share/applications
|
||||||
|
ln -s ${appimageContents}/ModrinthApp.png $out/share/icons/hicolor/256x256@2/apps/ModrinthApp.png
|
||||||
|
ln -s ${appimageContents}/ModrinthApp.png $out/share/icons/hicolor/128x128/apps/ModrinthApp.png
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Modrinth's game launcher";
|
||||||
|
longDescription = ''
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
homepage = "https://modrinth.com";
|
||||||
|
license = with lib.licenses; [
|
||||||
|
gpl3Plus
|
||||||
|
unfreeRedistributable
|
||||||
|
];
|
||||||
|
maintainers = with lib.maintainers; [ getchoo ];
|
||||||
|
mainProgram = "ModrinthApp";
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5,4 +5,5 @@ in
|
||||||
final: prev: {
|
final: prev: {
|
||||||
rdrview = callPackage ./by-name/rdrview { };
|
rdrview = callPackage ./by-name/rdrview { };
|
||||||
wine-discord-ipc-bridge = callPackage ./by-name/wine-discord-ipc-bridge { };
|
wine-discord-ipc-bridge = callPackage ./by-name/wine-discord-ipc-bridge { };
|
||||||
|
modrinth-app-bin = callPackage ./by-name/modrinth-app-bin { };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue