armcord: remove unnecessary splitString

This commit is contained in:
Arjun31415 2023-10-23 17:51:02 +05:30
parent d4a8b35d86
commit 47ea99dd5a

View File

@ -46,11 +46,11 @@ stdenv.mkDerivation rec {
in in
{ {
x86_64-linux = fetchurl { x86_64-linux = fetchurl {
url = "${base}/v${version}/ArmCord_${builtins.head (lib.splitString "-" version)}_amd64.deb"; url = "${base}/v${version}/ArmCord_${version}_amd64.deb";
hash = "sha256-6zlYm4xuYpG+Bgsq5S+B/Zt9TRB2GZnueKAg2ywYLE4="; hash = "sha256-6zlYm4xuYpG+Bgsq5S+B/Zt9TRB2GZnueKAg2ywYLE4=";
}; };
aarch64-linux = fetchurl { aarch64-linux = fetchurl {
url = "${base}/v${version}/ArmCord_${builtins.head (lib.splitString "-" version)}_arm64.deb"; url = "${base}/v${version}/ArmCord_${version}_arm64.deb";
hash = "sha256-HJu1lRa3zOTohsPMe23puHxg1VMWNR2aOjDQJqc4TqE="; hash = "sha256-HJu1lRa3zOTohsPMe23puHxg1VMWNR2aOjDQJqc4TqE=";
}; };
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");