summary refs log tree commit diff
path: root/pkgs/tools/games/opentracker/default.nix
blob: a184aa381a5f79feec9bff34b364d4c3f95b3691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ 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" ];
  };
}