7 pname = "electronplayer";
10 #TODO: remove the -rc4 from the tag in the url when possible
12 url = "https://github.com/oscartbeaumont/ElectronPlayer/releases/download/v${version}-rc4/${pname}-${version}.AppImage";
13 sha256 = "wAsmSFdbRPnYnDyWQSbtyj+GLJLN7ibksUE7cegfkhI=";
16 appimageContents = appimageTools.extractType2 { inherit pname version src; };
18 appimageTools.wrapType2 {
19 inherit pname version src;
21 extraInstallCommands = ''
22 install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
23 substituteInPlace $out/share/applications/${pname}.desktop \
24 --replace 'Exec=AppRun' 'Exec=ElectronPlayer'
25 cp -r ${appimageContents}/usr/share/icons $out/share
29 description = "Electron based web video services player";
30 mainProgram = "electronplayer";
31 homepage = "https://github.com/oscartbeaumont/ElectronPlayer";
32 license = licenses.mit;
33 maintainers = with maintainers; [ extends ];
34 platforms = [ "x86_64-linux" ];