Merge pull request #108439 from IvarWithoutBones/add-apple-music

apple-music-electron: init at 1.5.2

authored by

Sandro and committed by
GitHub
b28d3b93 41adb8ac

+34
+32
pkgs/applications/audio/apple-music-electron/default.nix
···
··· 1 + { appimageTools, lib, fetchurl }: 2 + let 3 + pname = "apple-music-electron"; 4 + version = "1.5.2"; 5 + name = "Apple.Music-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/iiFir3z/Apple-Music-Electron/releases/download/${version}/${name}.AppImage"; 9 + sha256 = "1jl0wgwy6ajmfkzygwb7cm9m49nkhp3x6vd8kwmh6ccs3jy4ayp5"; 10 + }; 11 + 12 + appimageContents = appimageTools.extract { inherit name src; }; 13 + in appimageTools.wrapType2 { 14 + inherit name src; 15 + 16 + extraInstallCommands = '' 17 + mv $out/bin/${name} $out/bin/${pname} 18 + 19 + install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications 20 + substituteInPlace $out/share/applications/${pname}.desktop \ 21 + --replace 'Exec=AppRun' 'Exec=$out/bin/apple-music-electron' 22 + cp -r ${appimageContents}/usr/share/icons $out/share 23 + ''; 24 + 25 + meta = with lib; { 26 + description = "Unofficial Apple Music application without having to bother with a Web Browser or iTunes"; 27 + homepage = "https://github.com/iiFir3z/Apple-Music-Electron"; 28 + license = licenses.mit; 29 + maintainers = [ maintainers.ivar ]; 30 + platforms = [ "x86_64-linux" ]; 31 + }; 32 + }
+2
pkgs/top-level/all-packages.nix
··· 2835 2836 appleseed = callPackage ../tools/graphics/appleseed { }; 2837 2838 arping = callPackage ../tools/networking/arping { }; 2839 2840 arpoison = callPackage ../tools/networking/arpoison { };
··· 2835 2836 appleseed = callPackage ../tools/graphics/appleseed { }; 2837 2838 + apple-music-electron = callPackage ../applications/audio/apple-music-electron { }; 2839 + 2840 arping = callPackage ../tools/networking/arping { }; 2841 2842 arpoison = callPackage ../tools/networking/arpoison { };