2023-02-02 18:25:31 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildDotnetModule,
|
|
|
|
fetchFromGitHub,
|
2024-06-20 14:57:18 +00:00
|
|
|
autoPatchelfHook,
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3,
|
2023-02-02 18:25:31 +00:00
|
|
|
dotnetCorePackages,
|
|
|
|
fontconfig,
|
|
|
|
gtk3,
|
2024-06-20 14:57:18 +00:00
|
|
|
icu,
|
|
|
|
libkrb5,
|
2023-02-02 18:25:31 +00:00
|
|
|
libunwind,
|
|
|
|
openssl,
|
|
|
|
xinput,
|
|
|
|
xorg,
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "opentracker";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.8.5";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trippsc2";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha512-nWkPgVYdnBJibyJRdLPe3O3RioDPbzumSritRejmr4CeiPb7aUTON7HjivcV/GKor1guEYu+TJ+QxYrqO/eppg==";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
patches = [./remove-project.patch];
|
|
|
|
|
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_6_0;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nugetDeps = ./deps.nix;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
projectFile = "OpenTracker.sln";
|
2023-02-02 18:25:31 +00:00
|
|
|
executables = ["OpenTracker"];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
doCheck = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
disabledTests = [
|
|
|
|
"OpenTracker.UnitTests.Models.Nodes.Factories.SLightWorldConnectionFactoryTests.GetNodeConnections_ShouldReturnExpectedValue"
|
|
|
|
"OpenTracker.UnitTests.Models.Sections.Factories.ItemSectionFactoryTests.GetItemSection_ShouldReturnExpected"
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = [
|
2024-06-20 14:57:18 +00:00
|
|
|
autoPatchelfHook
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
fontconfig
|
2022-01-19 23:45:15 +00:00
|
|
|
gtk3
|
2024-06-20 14:57:18 +00:00
|
|
|
icu
|
|
|
|
libkrb5
|
2023-02-02 18:25:31 +00:00
|
|
|
libunwind
|
2024-06-20 14:57:18 +00:00
|
|
|
openssl
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runtimeDeps =
|
|
|
|
[
|
|
|
|
gtk3
|
|
|
|
openssl
|
|
|
|
xinput
|
|
|
|
]
|
|
|
|
++ (with xorg; [
|
|
|
|
libICE
|
|
|
|
libSM
|
|
|
|
libX11
|
|
|
|
libXi
|
|
|
|
]);
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
autoPatchelfIgnoreMissingDeps = [
|
|
|
|
"libc.musl-x86_64.so.1"
|
|
|
|
"libintl.so.8"
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tracking application for A Link to the Past Randomizer";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/trippsc2/OpenTracker";
|
2022-07-14 12:49:19 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
fromSource
|
|
|
|
# deps
|
|
|
|
binaryBytecode
|
|
|
|
binaryNativeCode
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
license = licenses.mit;
|
2024-07-01 15:47:52 +00:00
|
|
|
maintainers = [ ];
|
2022-01-19 23:45:15 +00:00
|
|
|
mainProgram = "OpenTracker";
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = ["x86_64-linux"];
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|