summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-25 21:40:00 +0100
committerGitHub <noreply@github.com>2021-01-25 21:40:00 +0100
commitb28d3b933b2560f014b9b0d6a85b5ccabced73b8 (patch)
tree434147c369d3d25c6a2196d1f653f969a2b93b38 /pkgs/applications/audio
parent41adb8acc18b8902d06901e2bc365c960097db0b (diff)
parent531bd054eaef0902dc62f0d88c9b52ce995feb62 (diff)
Merge pull request #108439 from IvarWithoutBones/add-apple-music
apple-music-electron: init at 1.5.2
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/apple-music-electron/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/audio/apple-music-electron/default.nix b/pkgs/applications/audio/apple-music-electron/default.nix
new file mode 100644
index 000000000000..1c6180ac2119
--- /dev/null
+++ b/pkgs/applications/audio/apple-music-electron/default.nix
@@ -0,0 +1,32 @@
+{ appimageTools, lib, fetchurl }:
+let
+ pname = "apple-music-electron";
+ version = "1.5.2";
+ name = "Apple.Music-${version}";
+
+ src = fetchurl {
+ url = "https://github.com/iiFir3z/Apple-Music-Electron/releases/download/${version}/${name}.AppImage";
+ sha256 = "1jl0wgwy6ajmfkzygwb7cm9m49nkhp3x6vd8kwmh6ccs3jy4ayp5";
+ };
+
+ appimageContents = appimageTools.extract { inherit name src; };
+in appimageTools.wrapType2 {
+ inherit name src;
+
+ extraInstallCommands = ''
+ mv $out/bin/${name} $out/bin/${pname}
+
+ install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
+ substituteInPlace $out/share/applications/${pname}.desktop \
+ --replace 'Exec=AppRun' 'Exec=$out/bin/apple-music-electron'
+ cp -r ${appimageContents}/usr/share/icons $out/share
+ '';
+
+ meta = with lib; {
+ description = "Unofficial Apple Music application without having to bother with a Web Browser or iTunes";
+ homepage = "https://github.com/iiFir3z/Apple-Music-Electron";
+ license = licenses.mit;
+ maintainers = [ maintainers.ivar ];
+ platforms = [ "x86_64-linux" ];
+ };
+}