nixpkgs/pkgs/tools/games/opentracker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
1.8 KiB
Nix
Raw Normal View History

2023-01-07 07:45:36 +00:00
{
lib,
stdenv,
buildDotnetModule,
fetchFromGitHub,
autoPatchelfHook,
wrapGAppsHook,
dotnetCorePackages,
fontconfig,
gtk3,
libunwind,
openssl,
xinput,
xorg,
2021-10-26 04:56:05 +00:00
}:
buildDotnetModule rec {
pname = "opentracker";
2023-01-07 07:45:36 +00:00
version = "1.8.5";
2021-10-26 04:56:05 +00:00
src = fetchFromGitHub {
owner = "trippsc2";
repo = pname;
2023-01-07 07:45:36 +00:00
rev = "refs/tags/${version}";
hash = "sha512-nWkPgVYdnBJibyJRdLPe3O3RioDPbzumSritRejmr4CeiPb7aUTON7HjivcV/GKor1guEYu+TJ+QxYrqO/eppg==";
2021-10-26 04:56:05 +00:00
};
2023-01-07 07:45:36 +00:00
patches = [./remove-project.patch];
dotnet-runtime = dotnetCorePackages.runtime_6_0;
2021-10-26 04:56:05 +00:00
nugetDeps = ./deps.nix;
2021-11-01 00:26:25 +00:00
projectFile = "OpenTracker.sln";
2023-01-07 07:45:36 +00:00
executables = ["OpenTracker"];
2021-10-26 04:56:05 +00:00
2021-11-01 00:26:25 +00:00
doCheck = true;
2023-01-07 07:45:36 +00:00
disabledTests = [
"OpenTracker.UnitTests.Models.Nodes.Factories.SLightWorldConnectionFactoryTests.GetNodeConnections_ShouldReturnExpectedValue"
"OpenTracker.UnitTests.Models.Sections.Factories.ItemSectionFactoryTests.GetItemSection_ShouldReturnExpected"
];
2021-11-01 00:26:25 +00:00
2021-10-26 04:56:05 +00:00
nativeBuildInputs = [
autoPatchelfHook
wrapGAppsHook
];
buildInputs = [
stdenv.cc.cc.lib
fontconfig
gtk3
2023-01-07 07:45:36 +00:00
libunwind
2021-10-26 04:56:05 +00:00
];
2023-01-07 07:45:36 +00:00
runtimeDeps =
[
gtk3
openssl
xinput
]
++ (with xorg; [
libICE
libSM
libX11
libXi
]);
2021-10-26 04:56:05 +00:00
2023-01-07 07:45:36 +00:00
# Attempts to patchelf unneeded SOs
autoPatchelfIgnoreMissingDeps = [
"libc.musl-x86_64.so.1"
"libintl.so.8"
];
2021-10-26 04:56:05 +00:00
meta = with lib; {
description = "A tracking application for A Link to the Past Randomizer";
homepage = "https://github.com/trippsc2/OpenTracker";
sourceProvenance = with sourceTypes; [
fromSource
# deps
binaryBytecode
binaryNativeCode
];
2021-10-26 04:56:05 +00:00
license = licenses.mit;
2023-01-07 07:45:36 +00:00
maintainers = [maintainers.ivar];
mainProgram = "OpenTracker";
2023-01-07 07:45:36 +00:00
platforms = ["x86_64-linux"];
2021-10-26 04:56:05 +00:00
};
}