Commit c0738f3d authored by Tomo's avatar Tomo
Browse files

exodus: use requireFile for src

Upstream blocks automated downloads based on User-Agent:
https://github.com/NixOS/nixpkgs/issues/313548#issuecomment-2131323093

Closes #313548
parent f6a4aedd
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  fetchurl,
  requireFile,
  unzip,
  glib,
  systemd,
@@ -30,13 +30,9 @@ stdenv.mkDerivation (finalAttrs: {
  pname = "exodus";
  version = "24.19.4";

  src = fetchurl {
  src = requireFile {
    name = "exodus-linux-x64-${finalAttrs.version}.zip";
    url = "https://downloads.exodus.com/releases/exodus-linux-x64-${finalAttrs.version}.zip";
    curlOptsList = [
      "--user-agent"
      "Mozilla/5.0"
    ];
    hash = "sha256-+g7DdDrSVmBl1wCSCoJcO2gmbWQBnJUYqjT+GuDlCYw=";
  };