1 { lib, fetchurl, appimageTools }:
8 url = "https://github.com/martpie/museeks/releases/download/${version}/museeks-x86_64.AppImage";
9 hash = "sha256-LvunhCFmpv00TnXzWjp3kQUAhoKpmp6pqKgcaUqZV+o=";
12 appimageContents = appimageTools.extractType2 {
13 inherit pname version src;
16 appimageTools.wrapType2 {
17 inherit pname version src;
19 extraInstallCommands = ''
20 mv $out/bin/${pname}-${version} $out/bin/${pname}
22 mkdir -p $out/share/${pname}
23 cp -a ${appimageContents}/{locales,resources} $out/share/${pname}
24 cp -a ${appimageContents}/usr/share/icons $out/share/
25 install -Dm 444 ${appimageContents}/${pname}.desktop -t $out/share/applications
27 substituteInPlace $out/share/applications/${pname}.desktop \
28 --replace 'Exec=AppRun' 'Exec=${pname}'
32 description = "A simple, clean and cross-platform music player";
33 homepage = "https://github.com/martpie/museeks";
34 license = licenses.mit;
35 platforms = [ "x86_64-linux" ];
36 maintainers = with maintainers; [ zendo ];
37 mainProgram = "museeks";