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