nixpkgs/pkgs/applications/video/mythtv/default.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

114 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 = "34.0";
src = fetchFromGitHub {
owner = "MythTV";
repo = "mythtv";
rev = "v${version}";
hash = "sha256-6/TEoyYIRq6pufYzGOmO5DB05JuDo9lqRAYT5N5M/L4=";
};
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 = [ ];
};
}