Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

115 lines
1.6 KiB
Nix

{
lib,
mkDerivation,
fetchFromGitHub,
which,
qtbase,
qtwebkit,
qtscript,
libpulseaudio,
fftwSinglePrec,
lame,
zlib,
libGLU,
libGL,
alsa-lib,
freetype,
perl,
pkg-config,
libsamplerate,
libbluray,
lzo,
libX11,
libXv,
libXrandr,
libXvMC,
libXinerama,
libXxf86vm,
libXmu,
yasm,
libuuid,
taglib,
libtool,
autoconf,
automake,
file,
exiv2,
linuxHeaders,
soundtouch,
libzip,
libhdhomerun,
withWebKit ? false,
}:
mkDerivation rec {
pname = "mythtv";
version = "35.0";
src = fetchFromGitHub {
owner = "MythTV";
repo = "mythtv";
tag = "v${version}";
hash = "sha256-4mWtPJi2CBoek8LWEfdFxe1ybomAOCTWBTKExMm7nLU=";
};
patches = [
# Disable sourcing /etc/os-release
./dont-source-os-release.patch
];
setSourceRoot = "sourceRoot=$(echo */mythtv)";
buildInputs = [
freetype
qtbase
qtscript
lame
zlib
libGLU
libGL
perl
libsamplerate
libbluray
lzo
alsa-lib
libpulseaudio
fftwSinglePrec
libX11
libXv
libXrandr
libXvMC
libXmu
libXinerama
libXxf86vm
libXmu
libuuid
taglib
exiv2
soundtouch
libzip
libhdhomerun
]
++ lib.optional withWebKit qtwebkit;
nativeBuildInputs = [
pkg-config
which
yasm
libtool
autoconf
automake
file
];
configureFlags = [ "--dvb-path=${linuxHeaders}/include" ];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://www.mythtv.org/";
description = "Open Source DVR";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ ];
};
}