equicord: switch to new tag format

This commit is contained in:
NotAShelf 2025-04-19 18:29:57 +03:00
parent 181423e7a8
commit 20d875ff1d
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF

View file

@ -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";