diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 73c6ad194cb55..1e95ef7e85223 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4911,6 +4911,12 @@ github = "damhiya"; githubId = 13533446; }; + damidoug = { + email = "contact@damidoug.dev"; + github = "damidoug"; + githubId = 75175586; + name = "Douglas Damiano"; + }; DamienCassou = { email = "damien@cassou.me"; github = "DamienCassou"; diff --git a/pkgs/by-name/sp/spotube/package.nix b/pkgs/by-name/sp/spotube/package.nix index 3a06aab247017..d181f0f06a0f1 100644 --- a/pkgs/by-name/sp/spotube/package.nix +++ b/pkgs/by-name/sp/spotube/package.nix @@ -22,7 +22,7 @@ let pname = "spotube"; - version = "3.8.3"; + version = "3.9.0"; meta = { description = "Open source, cross-platform Spotify client compatible across multiple platforms"; @@ -40,24 +40,50 @@ let "x86_64-linux" "x86_64-darwin" "aarch64-darwin" + "aarch64-linux" ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; }; - fetchArtifact = - { filename, hash }: - fetchurl { - url = "https://github.com/KRTirtho/spotube/releases/download/v${version}/${filename}"; - inherit hash; + sources = + let + fetchArtifact = + { filename, hash }: + fetchurl { + url = "https://github.com/KRTirtho/spotube/releases/download/v${version}/${filename}"; + inherit hash; + }; + in + { + "aarch64-linux" = fetchArtifact { + filename = "Spotube-linux-aarch64.deb"; + hash = "sha256-KBuUAgUU6c/rBkkbpYjSarzckIoi+gRtCkumvtaoras="; + }; + "x86_64-linux" = fetchArtifact { + filename = "Spotube-linux-x86_64.deb"; + hash = "sha256-vzzK3csyKYP6fKKIoysziBsc2tqrg5LXS/6KoXBtNVI="; + }; + "x86_64-darwin" = fetchArtifact { + filename = "Spotube-macos-universal.dmg"; + hash = "sha256-wwIIKY+bmMJZigc2AK/QMg142uvZ+D6LOddzedJM5f8="; + }; + "aarch64-darwin" = fetchArtifact { + filename = "Spotube-macos-universal.dmg"; + hash = "sha256-wwIIKY+bmMJZigc2AK/QMg142uvZ+D6LOddzedJM5f8="; + }; }; + src = sources.${stdenv.hostPlatform.system}; + darwin = stdenv.mkDerivation { - inherit pname version meta; + inherit + pname + version + meta + src + ; - src = fetchArtifact { - filename = "Spotube-macos-universal.dmg"; - hash = "sha256-N1H/Vy5QQi8zAqiqAi5aTnUQcKC/EgL3GUhEfnCkaAQ="; - }; + passthru = { inherit sources; }; sourceRoot = "."; @@ -76,12 +102,14 @@ let }; linux = stdenv.mkDerivation { - inherit pname version meta; - - src = fetchArtifact { - filename = "Spotube-linux-x86_64.deb"; - hash = "sha256-x75ie9FXunClMT+YZVFlvl2VSDl933QYMRpEYjJ8YhY="; - }; + inherit + pname + version + meta + src + ; + + passthru = { inherit sources; }; nativeBuildInputs = [ autoPatchelfHook