1 { appimageTools, lib, fetchurl }:
3 pname = "electronplayer";
5 name = "${pname}-${version}";
7 #TODO: remove the -rc4 from the tag in the url when possible
9 url = "https://github.com/oscartbeaumont/ElectronPlayer/releases/download/v${version}-rc4/${name}.AppImage";
10 sha256 = "wAsmSFdbRPnYnDyWQSbtyj+GLJLN7ibksUE7cegfkhI=";
13 appimageContents = appimageTools.extractType2 { inherit name src; };
14 in appimageTools.wrapType2 {
17 extraInstallCommands = ''
18 mv $out/bin/${name} $out/bin/${pname}
20 install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
21 substituteInPlace $out/share/applications/${pname}.desktop \
22 --replace 'Exec=AppRun' 'Exec=ElectronPlayer'
23 cp -r ${appimageContents}/usr/share/icons $out/share
27 description = "An electron based web video services player";
28 mainProgram = "electronplayer";
29 homepage = "https://github.com/oscartbeaumont/ElectronPlayer";
30 license = licenses.mit;
31 maintainers = with maintainers; [ extends ];
32 platforms = [ "x86_64-linux" ];