nixpkgs/pkgs/tools/games/opentracker/default.nix
Rick van Schijndel b465f1a92f alttpr-opentracker: only enable on x86_64-linux
It was failing to build on aarch64-linux with:

Executing dotnetConfigureHook
  Determining projects to restore...
  Restored /build/source/OpenTracker.UnitTests/OpenTracker.UnitTests.csproj (in 35.07 sec).
  Restored /build/source/OpenTracker.Models/OpenTracker.Models.csproj (in 520 ms).
  Restored /build/source/OpenTracker.Utils/OpenTracker.Utils.csproj (in 48 ms).
/build/source/OpenTracker/OpenTracker.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.linux-arm64. No packages exist with this id in source(s): /nix/store/x82zwgmqdbp4xykx1nkrjin8hicm8jld-opentracker-1.8.2-nuget-source/lib [/build/source/OpenTracker.sln]
  Failed to restore /build/source/OpenTracker/OpenTracker.csproj (in 12.45 sec).
  Restored /build/source/Avalonia.ThemeManager/Avalonia.ThemeManager.csproj (in 56 ms).
2022-05-29 10:56:02 +02:00

65 lines
1.2 KiB
Nix

{ 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;
projectFile = "OpenTracker.sln";
executables = [ "OpenTracker" ];
doCheck = true;
dotnet-test-sdk = dotnetCorePackages.sdk_3_1;
nativeBuildInputs = [
autoPatchelfHook
wrapGAppsHook
];
buildInputs = [
stdenv.cc.cc.lib
fontconfig
gtk3
];
runtimeDeps = [
gtk3
openssl
libX11
libXi
xinput
];
autoPatchelfIgnoreMissingDeps = [ "libc.musl-x86_64.so.1" ]; # Attempts to patchelf unneeded SOs
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 ];
mainProgram = "OpenTracker";
platforms = [ "x86_64-linux" ];
};
}