Unverified Commit a8df1724 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

freefilesync: 14.4 -> 14.5 (#448482)

parents 88046567 537a71a8
Loading
Loading
Loading
Loading
+7 −20
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@
  fetchurl,
  replaceVars,
  fetchDebianPatch,
  fetchFromGitHub,
  copyDesktopItems,
  pkg-config,
  wrapGAppsHook3,
@@ -15,43 +14,31 @@
  libidn2,
  libssh2,
  openssl,
  wxGTK32,
  wxwidgets_3_3,
  makeDesktopItem,
}:

let
  wxwidgets_3_3 = wxGTK32.overrideAttrs (
  wxwidgets_3_3' = wxwidgets_3_3.overrideAttrs (
    finalAttrs: previousAttrs: {
      version = "3.3.0-unstable-2025-02-02";
      src = fetchFromGitHub {
        owner = "wxWidgets";
        repo = "wxWidgets";
        rev = "969c5a46b5c1da57836f721a4ce5df9feaa437f9";
        fetchSubmodules = true;
        hash = "sha256-ODPE896xc5RxdyfIzdPB5fsTeBm3O+asYJd99fuW6AY=";
      };
      patches = [
        ./wxcolorhook.patch
      ];
      configureFlags = lib.subtractLists [
        "--disable-compat28"
        "--enable-unicode"
      ] previousAttrs.configureFlags;
    }
  );
in
stdenv.mkDerivation (finalAttrs: {
  pname = "freefilesync";
  version = "14.4";
  version = "14.5";

  src = fetchurl {
    url = "https://freefilesync.org/download/FreeFileSync_${finalAttrs.version}_Source.zip";
    # The URL only redirects to the file on the second attempt
    postFetch = ''
      rm -f $out
      tryDownload "$url"
      rm -f "$out"
      tryDownload "$url" "$out"
    '';
    hash = "sha256-Jx/Q/RsCTy06kJfJeatqrEoTMz7wLZvPQ3bzFClvKWc=";
    hash = "sha256-+qfj1zf3V5xxtvXgCa0QDDRhEPQ3Qzii5eKiMySuUUY=";
  };

  sourceRoot = ".";
@@ -87,7 +74,7 @@ stdenv.mkDerivation (finalAttrs: {
    libidn2
    libssh2
    openssl
    wxwidgets_3_3
    wxwidgets_3_3'
  ];

  env.NIX_CFLAGS_COMPILE = toString [