2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, appimageTools
|
|
|
|
}:
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
let
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "sonixd";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "0.15.5";
|
2022-04-15 01:41:22 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/jeffvli/sonixd/releases/download/v${version}/Sonixd-${version}-linux-x86_64.AppImage";
|
2023-03-27 19:17:25 +00:00
|
|
|
sha256 = "sha256-j8B+o/CJ5SsZPMNbugyP3T9Kb+xuxlVxH02loxlwwDg=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
2023-02-16 17:41:37 +00:00
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
inherit pname version src;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
2023-02-16 17:41:37 +00:00
|
|
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
|
|
|
|
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}'
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
2022-04-15 01:41:22 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Full-featured Subsonic/Jellyfin compatible desktop music player";
|
|
|
|
homepage = "https://github.com/jeffvli/sonixd";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|