8 common-updater-scripts,
11 stdenvNoCC.mkDerivation (finalAttrs: {
18 url = "https://cdn.last.fm/client/Mac/Last.fm-${finalAttrs.version}.zip";
19 hash = "sha256-jxFh0HbY4g5xcvAI20b92dL1FRvRqPwBBa0Cv9k63+s=";
30 mkdir -p "$out/Applications"
31 cp -r *.app "$out/Applications"
36 passthru.updateScript = lib.getExe (writeShellApplication {
37 name = "lastfm-update-script";
41 common-updater-scripts
44 url=$(curl --silent "https://cdn.last.fm/client/Mac/updates.xml")
45 version=$(echo "$url" | xmlstarlet sel -t -v "substring-before(substring-after(//enclosure/@url, 'version='), '&')")
46 update-source-version lastfm "$version"
51 description = "Music services manager";
52 homepage = "https://www.last.fm/";
53 license = lib.licenses.unfree;
54 maintainers = with lib.maintainers; [ iivusly ];
55 platforms = lib.platforms.darwin;
56 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];