diff --git a/pkgs/by-name/eq/equicord/package.nix b/pkgs/by-name/eq/equicord/package.nix index bc12644fa050..e8f6b97529d7 100644 --- a/pkgs/by-name/eq/equicord/package.nix +++ b/pkgs/by-name/eq/equicord/package.nix @@ -10,18 +10,22 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "equicord"; - version = "1.11.4"; + # Upstream discourages inferring the package version from the package.json found in + # the Equicord repository. Dates as tags (and automatic releases) were the compromise + # we came to with upstream. Please do not change the version schema (e.g., to semver) + # unless upstream changes the tag schema from dates. + version = "2025-04-17"; src = fetchFromGitHub { owner = "Equicord"; repo = "Equicord"; - tag = "v${finalAttrs.version}"; - hash = "sha256-BjAp+bubpG9tTo8y5LWcTCnpLbiyuY1Q6ZnprgeKoZg="; + tag = "${finalAttrs.version}"; + hash = "sha256-pAuNqPrQBeL2qPIoIvyBl1PrUBz81TrBd5RT15Iuuus="; }; pnpmDeps = pnpm_9.fetchDeps { inherit (finalAttrs) pname version src; - hash = "sha256-4uCo/pQ4f8k/7DNpCPDAeqfroZ9icFiTwapwS10uWkE="; + hash = "sha256-fjfzBy1Z7AUKA53yjjCQ6yasHc5QMaOBtXtXA5fNK5s="; }; nativeBuildInputs = [ @@ -52,7 +56,12 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; - passthru.updateScript = nix-update-script { }; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "^\d{4}-\d{2}-\d{2}$" + ]; + }; meta = { description = "The other cutest Discord client mod";