depot/third_party/nixpkgs/pkgs/applications/video/k9copy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

63 lines
1.4 KiB
Nix

{ stdenv, fetchurl
, cmake
, dvdauthor, xineLib, libmpeg2, libav, libdvdread, libdvdnav, dvdplusrwtools
, phonon, qtx11extras
, extra-cmake-modules, kio, kiconthemes, ki18n, kdesu, kdoctools, solid
}:
stdenv.mkDerivation rec {
version = "3.0.3";
pname = "k9copy";
src = fetchurl {
url = "mirror://sourceforge/k9copy-reloaded/${pname}-${version}.tar.gz";
sha256 = "0dp06rwihks50c57bbv04d6bj2qc88isl91971r4lii2xp0qn7sg";
};
patches = [
./gcc6.patch
];
cmakeFlags = [
"-DQT5_BUILD=ON"
"-DCMAKE_MINIMUM_REQUIRED_VERSION=3.0"
];
# Hack to disable documentation
preConfigure = ''
substituteInPlace ./CMakeLists.txt \
--replace "add_subdirectory(doc)" ""
'';
buildInputs = [
cmake
dvdauthor
xineLib
libmpeg2
libav
libdvdread
libdvdnav
dvdplusrwtools
#automoc4
phonon
extra-cmake-modules
kio
solid
qtx11extras
kiconthemes
ki18n
kdesu
];
nativeBuildInputs = [ kdoctools ];
meta = {
description = "DVD backup and DVD authoring program";
homepage = "http://k9copy-reloaded.sourceforge.net/";
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ flosse ];
platforms = stdenv.lib.platforms.unix;
# TODO: The software is deprecated and the build is broken, see:
# https://github.com/NixOS/nixpkgs/pull/63260#issuecomment-503506487
broken = true;
};
}