Unverified Commit 27cd4f14 authored by Matt Sturgeon's avatar Matt Sturgeon
Browse files
parent f9346f62
Loading
Loading
Loading
Loading
+2 −16
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
  desktop-file-utils,
  dotnetCorePackages,
  fetchFromGitHub,
  fetchpatch2,
  imagemagick,
  lib,
  xdg-utils,
@@ -23,13 +22,13 @@ let
in
buildDotnetModule (finalAttrs: {
  inherit pname;
  version = "0.19.4";
  version = "0.20.2";

  src = fetchFromGitHub {
    owner = "Nexus-Mods";
    repo = "NexusMods.App";
    tag = "v${finalAttrs.version}";
    hash = "sha256-WKfv5y6UmO3dmzkXrqZ+VtIbXf0FszRdsa5Rmp95rYg=";
    hash = "sha256-hpsrHHh0Bk+9Z4Qp5aTqH5i8KnqCLQdseYGrbr4sh1k=";
    fetchSubmodules = true;
  };

@@ -57,14 +56,6 @@ buildDotnetModule (finalAttrs: {
  dotnet-sdk = dotnetCorePackages.sdk_9_0;
  dotnet-runtime = dotnetCorePackages.runtime_9_0;

  patches = [
    (fetchpatch2 {
      name = "Fix-SMAPI-installation.patch";
      url = "https://github.com/Nexus-Mods/NexusMods.App/pull/4026.patch?full_index=1";
      hash = "sha256-1LgFTi63fVhGUZXZtS6iD2yqd0RxhdpiXKtWMFNEoD4=";
    })
  ];

  postPatch = ''
    # Specify a fixed date to improve build reproducibility
    echo "1970-01-01T00:00:00Z" >buildDate.txt
@@ -82,11 +73,6 @@ buildDotnetModule (finalAttrs: {
    ${lib.optionalString finalAttrs.doCheck ''
      # For some reason these tests fail (intermittently?) with a zero timestamp
      touch tests/NexusMods.UI.Tests/WorkspaceSystem/*.verified.png

      # Fix expected version number in text fixture
      # https://github.com/Nexus-Mods/NexusMods.App/issues/4030
      substituteInPlace tests/NexusMods.Backend.Tests/EventTrackerTests.Test_PrepareRequest.verified.txt \
        --replace-fail 0.0.1 ${finalAttrs.version}
    ''}
  '';

+20 −20
Original line number Diff line number Diff line
@@ -6,12 +6,12 @@
    "forum_url": "https://forums.nexusmods.com/games/19-stardew-valley/",
    "nexusmods_url": "https://www.nexusmods.com/stardewvalley",
    "genre": "Simulation",
    "file_count": 143212,
    "downloads": 627187655,
    "file_count": 144372,
    "downloads": 635510946,
    "domain_name": "stardewvalley",
    "approved_date": 1457432329,
    "mods": 25945,
    "collections": 2020
    "mods": 26187,
    "collections": 1990
  },
  {
    "id": 1704,
@@ -20,12 +20,12 @@
    "forum_url": "https://forums.nexusmods.com/games/6-skyrim/",
    "nexusmods_url": "https://www.nexusmods.com/skyrimspecialedition",
    "genre": "RPG",
    "file_count": 661698,
    "downloads": 9193533035,
    "file_count": 667120,
    "downloads": 9346275237,
    "domain_name": "skyrimspecialedition",
    "approved_date": 1477480498,
    "mods": 118807,
    "collections": 4852
    "mods": 119859,
    "collections": 4876
  },
  {
    "id": 3174,
@@ -34,12 +34,12 @@
    "forum_url": "https://forums.nexusmods.com/games/9-mount-blade-ii-bannerlord/",
    "nexusmods_url": "https://www.nexusmods.com/mountandblade2bannerlord",
    "genre": "Strategy",
    "file_count": 50603,
    "downloads": 116400189,
    "file_count": 50960,
    "downloads": 117558949,
    "domain_name": "mountandblade2bannerlord",
    "approved_date": 1582898627,
    "mods": 6341,
    "collections": 293
    "mods": 6397,
    "collections": 294
  },
  {
    "id": 3333,
@@ -48,12 +48,12 @@
    "forum_url": "https://forums.nexusmods.com/games/1-cyberpunk-2077/",
    "nexusmods_url": "https://www.nexusmods.com/cyberpunk2077",
    "genre": "Action",
    "file_count": 125224,
    "downloads": 930909718,
    "file_count": 126752,
    "downloads": 958960285,
    "domain_name": "cyberpunk2077",
    "approved_date": 1607433331,
    "mods": 18032,
    "collections": 1588
    "mods": 18283,
    "collections": 1597
  },
  {
    "id": 3474,
@@ -62,11 +62,11 @@
    "forum_url": "https://forums.nexusmods.com/games/2-baldurs-gate-3/",
    "nexusmods_url": "https://www.nexusmods.com/baldursgate3",
    "genre": "RPG",
    "file_count": 105632,
    "downloads": 351591575,
    "file_count": 106755,
    "downloads": 359737700,
    "domain_name": "baldursgate3",
    "approved_date": 1602863114,
    "mods": 15020,
    "collections": 1752
    "mods": 15196,
    "collections": 1740
  }
]