biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / museeks / default.nix
blob206fee9de709b404228613b9a9a6a3bbdd453621
1 { lib, fetchurl, appimageTools }:
3 let
4   pname = "museeks";
5   version = "0.13.1";
7   src = fetchurl {
8     url = "https://github.com/martpie/museeks/releases/download/${version}/museeks-x86_64.AppImage";
9     hash = "sha256-LvunhCFmpv00TnXzWjp3kQUAhoKpmp6pqKgcaUqZV+o=";
10   };
12   appimageContents = appimageTools.extractType2 {
13     inherit pname version src;
14   };
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}'
29   '';
31   meta = with lib; {
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";
38   };