molotov: init at 4.2.2

gstqt5
freezeboy 2020-07-10 19:20:29 +02:00 committed by Jon
parent d00a690499
commit 3e988dfb33
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ appimageTools, lib, fetchurl }:
let
pname = "molotov";
version = "4.2.2";
name = "${pname}-${version}";
src = fetchurl {
url = "http://desktop-auto-upgrade.molotov.tv/linux/${version}/molotov.AppImage";
sha256 = "00p8srf4yswbihlsi3s7kfkav02h902yvrq99wys11is63n01x8z";
};
appimageContents = appimageTools.extractType2 { inherit name src; };
in
appimageTools.wrapType2 {
inherit name src;
extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${pname}
install -m 444 -D \
${appimageContents}/${pname}.desktop \
$out/share/applications/${pname}.desktop
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
cp -r ${appimageContents}/usr/share/icons $out/share
'';
meta = with lib; {
description = "French TV service";
homepage = "https://www.molotov.tv/";
license = with licenses; [ unfree ];
maintainers = with maintainers; [ apeyroux freezeboy ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -5388,6 +5388,8 @@ in
molly-guard = callPackage ../os-specific/linux/molly-guard { };
molotov = callPackage ../applications/video/molotov {};
moneyplex = callPackage ../applications/office/moneyplex { };
monit = callPackage ../tools/system/monit { };