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";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "0.15.3";
|
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";
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "sha256-+4L3XAuR7T/z5a58SXre6yUiVi7TvSAs8vPgEC7hcIw=";
|
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" ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|