2022-11-11 11:14:49 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "museeks";
|
|
|
|
version = "0.13.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/martpie/museeks/releases/download/${version}/museeks-x86_64.AppImage";
|
|
|
|
hash = "sha256-LvunhCFmpv00TnXzWjp3kQUAhoKpmp6pqKgcaUqZV+o=";
|
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p $out/share/${pname}
|
|
|
|
cp -a ${appimageContents}/{locales,resources} $out/share/${pname}
|
|
|
|
cp -a ${appimageContents}/usr/share/icons $out/share/
|
|
|
|
install -Dm 444 ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
|
|
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple, clean and cross-platform music player";
|
|
|
|
homepage = "https://github.com/martpie/museeks";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ zendo ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "museeks";
|
2022-11-11 11:14:49 +00:00
|
|
|
};
|
|
|
|
}
|