depot/third_party/nixpkgs/pkgs/by-name/me/melodeon/package.nix

42 lines
971 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
qt6,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "melodeon";
version = "0.4.3";
src = fetchFromGitHub {
owner = "CDrummond";
repo = "melodeon";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-Og0o4Iy0mvGE7H5IY9h7uo7w64jZjXtdsGd4ApYO8oU=";
fetchSubmodules = true;
};
buildInputs = [
qt6.qtbase
qt6.qtwebengine
];
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook
];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
meta = {
description = "QWebEngine wrapper for MaterialSkin on Lyrion Music Server (formerly Logitech Media Server)";
mainProgram = "melodeon";
homepage = "https://github.com/CDrummond/melodeon";
changelog = "https://github.com/CDrummond/melodeon/releases/tag/${finalAttrs.version}";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ edgar-vincent ];
};
})