uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
56
pkgs/applications/video/vdr/default.nix
Normal file
56
pkgs/applications/video/vdr/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ 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.1";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://git.tvdr.de/vdr.git";
|
||||
rev = version;
|
||||
sha256 = "sha256-jKuvh1OruPXTBlgLwlwcJdqC8u0WBDr/Un5JUL3U0hw=";
|
||||
};
|
||||
|
||||
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 = [ "i686-linux" "x86_64-linux" ];
|
||||
license = licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue