From 47ea99dd5a56b14b8bc9c86e2909d9492eba65b7 Mon Sep 17 00:00:00 2001 From: Arjun31415 Date: Mon, 23 Oct 2023 17:51:02 +0530 Subject: [PATCH] armcord: remove unnecessary `splitString` --- .../networking/instant-messengers/armcord/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/armcord/default.nix b/pkgs/applications/networking/instant-messengers/armcord/default.nix index a8d3d2607de4..9b16c05241c8 100644 --- a/pkgs/applications/networking/instant-messengers/armcord/default.nix +++ b/pkgs/applications/networking/instant-messengers/armcord/default.nix @@ -46,11 +46,11 @@ stdenv.mkDerivation rec { in { 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="; }; 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="; }; }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");