lint-staged: 15.2.10 -> 15.2.11 (#364089)
[NixPkgs.git] / pkgs / applications / video / electronplayer / electronplayer.nix
bloba11c8555e76cf95d37acb2d98b0c3ad124ba350b
2   appimageTools,
3   lib,
4   fetchurl,
5 }:
6 let
7   pname = "electronplayer";
8   version = "2.0.8";
10   #TODO: remove the -rc4 from the tag in the url when possible
11   src = fetchurl {
12     url = "https://github.com/oscartbeaumont/ElectronPlayer/releases/download/v${version}-rc4/${pname}-${version}.AppImage";
13     sha256 = "wAsmSFdbRPnYnDyWQSbtyj+GLJLN7ibksUE7cegfkhI=";
14   };
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
26   '';
28   meta = with lib; {
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" ];
35   };