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 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
result/bin/apply-formatting $NIXPKGS_PATH
92 lines
1.6 KiB
Nix
92 lines
1.6 KiB
Nix
{
|
|
stdenv,
|
|
fetchgit,
|
|
fontconfig,
|
|
libjpeg,
|
|
libcap,
|
|
freetype,
|
|
fribidi,
|
|
pkg-config,
|
|
gettext,
|
|
systemd,
|
|
perl,
|
|
lib,
|
|
enableSystemd ? true,
|
|
enableBidi ? true,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vdr";
|
|
version = "2.6.9";
|
|
|
|
src = fetchgit {
|
|
url = "git://git.tvdr.de/vdr.git";
|
|
rev = version;
|
|
hash = "sha256-0Metur3+fQhomf+ClY9zXijNsr5wWkaqnzjUNXjsjss=";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postPatch = "substituteInPlace Makefile --replace libsystemd-daemon libsystemd";
|
|
|
|
buildInputs =
|
|
[
|
|
fontconfig
|
|
libjpeg
|
|
libcap
|
|
freetype
|
|
perl
|
|
]
|
|
++ lib.optional enableSystemd systemd
|
|
++ lib.optional enableBidi fribidi;
|
|
|
|
buildFlags =
|
|
[
|
|
"vdr"
|
|
"i18n"
|
|
]
|
|
++ lib.optional enableSystemd "SDNOTIFY=1"
|
|
++ lib.optional enableBidi "BIDI=1";
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
# plugins uses the same build environment as vdr
|
|
propagatedNativeBuildInputs = [
|
|
pkg-config
|
|
gettext
|
|
];
|
|
|
|
installFlags = [
|
|
"DESTDIR=$(out)"
|
|
"PREFIX=" # needs to be empty, otherwise plugins try to install at same prefix
|
|
];
|
|
|
|
installTargets = [
|
|
"install-pc"
|
|
"install-bin"
|
|
"install-doc"
|
|
"install-i18n"
|
|
"install-includes"
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/vdr # only needed if vdr is started without any plugin
|
|
mkdir -p $out/share/vdr/conf
|
|
cp *.conf $out/share/vdr/conf
|
|
'';
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"man"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.tvdr.de/";
|
|
description = "Video Disc Recorder";
|
|
maintainers = [ maintainers.ck3d ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|