nixpkgs/pkgs/applications/audio/sonixd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1.0 KiB
Nix
Raw Normal View History

2021-12-05 14:28:00 +00:00
{ lib
, fetchurl
, appimageTools
}:
2023-02-14 08:26:49 +00:00
let
2021-12-05 14:28:00 +00:00
pname = "sonixd";
2023-03-26 12:10:15 +00:00
version = "0.15.5";
2021-12-05 14:28:00 +00:00
src = fetchurl {
url = "https://github.com/jeffvli/sonixd/releases/download/v${version}/Sonixd-${version}-linux-x86_64.AppImage";
2023-03-26 12:10:15 +00:00
sha256 = "sha256-j8B+o/CJ5SsZPMNbugyP3T9Kb+xuxlVxH02loxlwwDg=";
2021-12-05 14:28:00 +00:00
};
2023-02-14 08:26:49 +00:00
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 rec {
inherit pname version src;
2021-12-05 14:28:00 +00:00
extraInstallCommands = ''
2023-02-14 08:26:49 +00:00
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
2023-02-16 11:46:23 +00:00
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}'
cp -r ${appimageContents}/usr/share/icons $out/share
2021-12-05 14:28:00 +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" ];
2024-02-11 02:19:15 +00:00
mainProgram = "sonixd";
2021-12-05 14:28:00 +00:00
};
}