sys-config/packages/soularr.nix
2025-12-21 14:50:37 +01:00

48 lines
944 B
Nix

{
lib,
fetchFromGitHub,
installShellFiles,
python3Packages,
slskd-api,
}:
python3Packages.buildPythonApplication {
pname = "soularr";
version = "0-unstable-2025-02-05";
pyproject = false;
src = fetchFromGitHub {
owner = "mrusse";
repo = "soularr";
rev = "dc23f6d11fb2148c35168028b6b2fdfd0c502957";
hash = "sha256-znEubXeQmEmE8swmgDSliTh/v/k3t55jzchWCAd9bGc=";
};
nativeBuildInputs = [ installShellFiles ];
dependencies = with python3Packages; [
music-tag
pyarr
slskd-api
];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mv soularr{.py,}
installBin soularr
runHook postInstall
'';
meta = {
description = "Python script that connects Lidarr with Soulseek";
homepage = "https://soularr.net/";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "soularr";
};
}