Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
79 lines
1.8 KiB
Nix
79 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
gtest,
|
|
boost,
|
|
wt,
|
|
taglib,
|
|
libconfig,
|
|
libarchive,
|
|
graphicsmagick,
|
|
ffmpeg,
|
|
zlib,
|
|
libSM,
|
|
libICE,
|
|
stb,
|
|
openssl,
|
|
xxHash,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lms";
|
|
version = "3.69.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "epoupon";
|
|
repo = "lms";
|
|
rev = "v${version}";
|
|
hash = "sha256-fdsKNicBcdUoxFLYg8Lq1KFZub1P3pt2rOKQ/1V2VtU=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
gtest
|
|
boost
|
|
wt
|
|
taglib
|
|
libconfig
|
|
libarchive
|
|
graphicsmagick
|
|
ffmpeg
|
|
zlib
|
|
libSM
|
|
libICE
|
|
stb
|
|
openssl
|
|
xxHash
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/libs/core/include/core/SystemPaths.hpp --replace-fail "/etc" "$out/share/lms"
|
|
'';
|
|
|
|
postInstall = ''
|
|
substituteInPlace $out/share/lms/lms.conf --replace-fail "/usr/bin/ffmpeg" "${lib.getExe ffmpeg}"
|
|
substituteInPlace $out/share/lms/lms.conf --replace-fail "/usr/share/Wt/resources" "${wt}/share/Wt/resources"
|
|
substituteInPlace $out/share/lms/lms.conf --replace-fail "/usr/share/lms/docroot" "$out/share/lms/docroot"
|
|
substituteInPlace $out/share/lms/lms.conf --replace-fail "/usr/share/lms/approot" "$out/share/lms/approot"
|
|
substituteInPlace $out/share/lms/default.service --replace-fail "/usr/bin/lms" "$out/bin/lms"
|
|
install -Dm444 $out/share/lms/default.service -T $out/lib/systemd/system/lmsd.service
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/epoupon/lms";
|
|
changelog = "https://github.com/epoupon/lms/releases/tag/${src.rev}";
|
|
description = "Lightweight Music Server - Access your self-hosted music using a web interface";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "lms";
|
|
maintainers = with lib.maintainers; [ mksafavi ];
|
|
};
|
|
}
|