2023-07-11 09:12:50 -06:00
|
|
|
{
|
|
|
|
fetchurl,
|
|
|
|
appimageTools,
|
|
|
|
desktop-file-utils,
|
|
|
|
...
|
|
|
|
}: let
|
2022-08-25 12:21:35 -06:00
|
|
|
name = "mudita-center";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "mudita-center.AppImage";
|
2023-07-11 09:12:50 -06:00
|
|
|
url = "https://github.com/mudita/mudita-center/releases/download/${version}/Mudita-Center.AppImage";
|
2022-08-25 12:21:35 -06:00
|
|
|
sha256 = "1cqrrs5ycl5lrla8mprx443dpiz99a63f4i3da43vxh1xxl0ki4n";
|
|
|
|
};
|
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
appimageContents = appimageTools.extract {inherit name src;};
|
|
|
|
in
|
|
|
|
appimageTools.wrapType1 rec {
|
|
|
|
inherit name src;
|
2022-08-25 12:21:35 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
extraInstallCommands = ''
|
|
|
|
cp -r ${appimageContents}/* $out
|
|
|
|
cd $out
|
|
|
|
chmod -R +w $out
|
2022-08-25 12:21:35 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
mv "Mudita Center" $out/${name}
|
2022-08-25 12:21:35 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
# TODO:
|
|
|
|
#${desktop-file-utils}/bin/desktop-file-install --dir $out/share/applications \
|
|
|
|
# --set-key Exec --set-value ${name} "Mudita Center.desktop"
|
2022-08-25 12:21:35 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
mv usr/share/icons share
|
2022-08-25 12:21:35 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
rm usr/lib/* AppRun *.desktop
|
|
|
|
'';
|
2022-08-25 12:21:35 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
#extraPkgs = pkgs: with pkgs; [ ];
|
|
|
|
}
|