2021-10-26 04:56:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoPatchelfHook
|
|
|
|
, wrapGAppsHook
|
|
|
|
, dotnetCorePackages
|
|
|
|
, fontconfig
|
|
|
|
, gtk3
|
|
|
|
, openssl
|
|
|
|
, libX11
|
|
|
|
, libXi
|
|
|
|
, xinput
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "opentracker";
|
|
|
|
version = "1.8.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trippsc2";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0nsmyb1wd86465iri9jxl3jp74gxkscvnmr3687ddbia3dv4fz0z";
|
|
|
|
};
|
|
|
|
|
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_3_1;
|
|
|
|
nugetDeps = ./deps.nix;
|
2021-11-01 00:26:25 +00:00
|
|
|
|
|
|
|
projectFile = "OpenTracker.sln";
|
2021-10-26 04:56:05 +00:00
|
|
|
executables = [ "OpenTracker" ];
|
|
|
|
|
2021-11-01 00:26:25 +00:00
|
|
|
doCheck = true;
|
|
|
|
dotnet-test-sdk = dotnetCorePackages.sdk_3_1;
|
|
|
|
|
2021-10-26 04:56:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
fontconfig
|
2022-01-11 23:08:11 +00:00
|
|
|
gtk3
|
2021-10-26 04:56:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
runtimeDeps = [
|
|
|
|
gtk3
|
|
|
|
openssl
|
|
|
|
libX11
|
|
|
|
libXi
|
|
|
|
xinput
|
|
|
|
];
|
|
|
|
|
2022-04-11 01:29:06 +00:00
|
|
|
autoPatchelfIgnoreMissingDeps = [ "libc.musl-x86_64.so.1" ]; # Attempts to patchelf unneeded SOs
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
2022-01-11 23:08:11 +00:00
|
|
|
mainProgram = "OpenTracker";
|
2022-05-19 19:24:39 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-10-26 04:56:05 +00:00
|
|
|
};
|
|
|
|
}
|