tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mlt: 6.24.0 -> 7.0.1
Thomas Tuegel
4 years ago
67b954df
944cb4a1
+4
-30
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
mlt
qt-5.nix
+4
-30
pkgs/development/libraries/mlt/qt-5.nix
···
1
1
{ lib
2
2
, fetchFromGitHub
3
3
+
, cmake
3
4
, SDL
4
5
, ffmpeg
5
6
, frei0r
···
26
27
let inherit (lib) getDev; in
27
28
mkDerivation rec {
28
29
pname = "mlt";
29
29
-
version = "6.24.0";
30
30
+
version = "7.0.1";
30
31
31
32
src = fetchFromGitHub {
32
33
owner = "mltframework";
33
34
repo = "mlt";
34
35
rev = "v${version}";
35
35
-
sha256 = "1my43ica2qax2622307dv4gn3w8hkchy643i9pq8r9yh2hd4pvs9";
36
36
+
sha256 = "13c5miph9jjbz69dhy0zvbkk5zbb05dr3vraaci0d5fdbrlhyscf";
36
37
};
37
38
38
39
buildInputs = [
···
56
57
ladspaPlugins
57
58
];
58
59
59
59
-
nativeBuildInputs = [ which ];
60
60
+
nativeBuildInputs = [ cmake which ];
60
61
61
62
outputs = [ "out" "dev" ];
62
63
63
63
-
# Mostly taken from:
64
64
-
# http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
65
65
-
configureFlags = [
66
66
-
"--avformat-swscale"
67
67
-
"--enable-gpl"
68
68
-
"--enable-gpl3"
69
69
-
"--enable-opengl"
70
70
-
];
71
71
-
72
72
-
# mlt is unable to cope with our multi-prefix Qt build
73
73
-
# because it does not use CMake or qmake.
74
74
-
NIX_CFLAGS_COMPILE = "-I${getDev qtsvg}/include/QtSvg";
75
75
-
76
76
-
CXXFLAGS = "-std=c++11";
77
77
-
78
64
qtWrapperArgs = [
79
65
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
80
66
"--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"
81
67
];
82
82
-
83
83
-
postInstall = ''
84
84
-
# Remove an unnecessary reference to movit.dev.
85
85
-
s=${movit.dev}/include
86
86
-
t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
87
87
-
sed -i $out/lib/mlt/libmltopengl.so -e "s|$s|$t|g"
88
88
-
89
89
-
# Remove an unnecessary reference to movit.dev.
90
90
-
s=${qtbase.dev}/include
91
91
-
t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
92
92
-
sed -i $out/lib/mlt/libmltqt.so -e "s|$s|$t|g"
93
93
-
'';
94
68
95
69
passthru = {
96
70
inherit ffmpeg;