generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
346 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ updates: | |
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
|
||
result | ||
result-* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ pkgs }: | ||
|
||
with pkgs.lib; { | ||
# Add your library functions here | ||
# | ||
# hexint = x: hexvals.${toLower x}; | ||
} | ||
with pkgs.lib; {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
{ | ||
# Add your NixOS modules here | ||
# | ||
# my-module = ./my-module; | ||
} | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
{ | ||
# Add your overlays here | ||
# | ||
# my-overlay = import ./my-overlay; | ||
} | ||
{} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages, SDL2, libsecret, glib, gnutls, aria2, steam, gst_all_1 | ||
, copyDesktopItems, makeDesktopItem, makeWrapper | ||
, useSteamRun ? true }: | ||
|
||
let | ||
tag = "1.1.0.6"; | ||
in | ||
buildDotnetModule rec { | ||
pname = "xivlauncher-rb"; | ||
version = tag; | ||
|
||
src = fetchFromGitHub { | ||
owner = "rankynbass"; | ||
repo = "XIVLauncher.Core"; | ||
rev = "rb-v${tag}"; | ||
hash = "sha256-ptpQnWC7aYmC0apwMWTCAQuyG7vUF50fERiXFWHrxg4="; | ||
fetchSubmodules = true; | ||
}; | ||
|
||
nativeBuildInputs = [ copyDesktopItems makeWrapper ]; | ||
|
||
buildInputs = with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ]; | ||
|
||
projectFile = "src/XIVLauncher.Core/XIVLauncher.Core.csproj"; | ||
nugetDeps = ./deps.nix; # File generated with `nix-build -A xivlauncher-rb.passthru.fetch-deps` | ||
|
||
# please do not unpin these even if they match the defaults, xivlauncher is sensitive to .NET versions | ||
dotnet-sdk = dotnetCorePackages.sdk_8_0; | ||
dotnet-runtime = dotnetCorePackages.runtime_8_0; | ||
|
||
dotnetFlags = [ | ||
"-p:BuildHash=${tag}" | ||
"-p:PublishSingleFile=false" | ||
]; | ||
|
||
postPatch = '' | ||
substituteInPlace lib/FFXIVQuickLauncher/src/XIVLauncher.Common/Game/Patch/Acquisition/Aria/AriaHttpPatchAcquisition.cs \ | ||
--replace-fail 'ariaPath = "aria2c"' 'ariaPath = "${aria2}/bin/aria2c"' | ||
''; | ||
|
||
postInstall = '' | ||
mkdir -p $out/share/pixmaps | ||
cp src/XIVLauncher.Core/Resources/logo.png $out/share/pixmaps/xivlauncher.png | ||
''; | ||
|
||
postFixup = lib.optionalString useSteamRun (let | ||
steam-run = (steam.override { | ||
extraPkgs = pkgs: [ pkgs.libunwind pkgs.zstd ]; | ||
extraProfile = '' | ||
unset TZ | ||
''; | ||
}).run; | ||
in '' | ||
substituteInPlace $out/bin/XIVLauncher.Core \ | ||
--replace 'exec' 'exec ${steam-run}/bin/steam-run' | ||
'') + '' | ||
wrapProgram $out/bin/XIVLauncher.Core --prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0" | ||
# the reference to aria2 gets mangled as UTF-16LE and isn't detectable by nix: https://github.com/NixOS/nixpkgs/issues/220065 | ||
mkdir -p $out/nix-support | ||
echo ${aria2} >> $out/nix-support/depends | ||
''; | ||
|
||
executables = [ "XIVLauncher.Core" ]; | ||
|
||
runtimeDeps = [ SDL2 libsecret glib gnutls ]; | ||
|
||
desktopItems = [ | ||
(makeDesktopItem { | ||
name = "xivlauncher-rb"; | ||
exec = "XIVLauncher.Core"; | ||
icon = "xivlauncher"; | ||
desktopName = "XIVLauncher-RB"; | ||
comment = meta.description; | ||
categories = [ "Game" ]; | ||
startupWMClass = "XIVLauncher.Core"; | ||
}) | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Custom launcher for FFXIV"; | ||
homepage = "https://github.com/rankynbass/XIVLauncher.Core"; | ||
license = licenses.gpl3; | ||
# maintainers = with maintainers; [ sersorrel witchof0x20 ]; | ||
platforms = [ "x86_64-linux" ]; | ||
mainProgram = "XIVLauncher.Core"; | ||
}; | ||
} |
Oops, something went wrong.