Merge pull request #262921 from Arjun31415/armcord-update

armcord: remove unnecessary `splitString`
This commit is contained in:
Weijia Wang 2023-10-24 07:47:20 +02:00 committed by GitHub
commit 42f9bf9142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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