@@ -1,61 +1,80 @@
11{ stdenv, fetchurl, pkgconfig, intltool, itstool, wrapGAppsHook
22, python3Packages, gst, gtk3, hicolor-icon-theme
33, gobjectIntrospection, librsvg, gnome3, libnotify
4−# for gst-transcoder:
5−, which, meson, ninja
4+, meson, ninja
65}:
76
87let
9− version = "0.96";
8+ version = "0.99";
109
1110 # gst-transcoder will eventually be merged with gstreamer (according to
1211 # gst-transcoder 1.8.0 release notes). For now the only user is pitivi so we
1312 # don't bother exposing the package to all of nixpkgs.
1413 gst-transcoder = stdenv.mkDerivation rec {
15− name = "gst-transcoder-1.8.0";
14+ version = "1.12.2";
15+ name = "gst-transcoder-${version}";
1616 src = fetchurl {
1717 name = "${name}.tar.gz";
18− url = "https://github.com/pitivi/gst-transcoder/archive/1.8.0.tar.gz";
19− sha256 = "0iggr6idmp7cmfsf6pkhfl3jq1bkga37jl5prbcl1zapkzi26fg6";
18+ url = "https://github.com/pitivi/gst-transcoder/archive/${version}.tar.gz";
19+ sha256 = "0cnwmrsd321s02ff91m3j27ydj7f8wks0jvmp5admlhka6z7zxm9";
2020 };
21− nativeBuildInputs = [ pkgconfig ];
22− buildInputs = [ which meson ninja gobjectIntrospection ]
23− ++ (with gst; [ gstreamer gst-plugins-base ]);
21+ nativeBuildInputs = [ pkgconfig meson ninja gobjectIntrospection ];
22+ buildInputs = with gst; [ gstreamer gst-plugins-base ];
2423 };
2524
26−in stdenv.mkDerivation rec {
25+in python3Packages.buildPythonApplication rec {
2726 name = "pitivi-${version}";
2827
2928 src = fetchurl {
30− url = "mirror://gnome/sources/pitivi/${version}/${name}.tar.xz";
31− sha256 = "115d37mvi32yds8gqj2yidkk6pap7szavhjf2hw0388ynydlc2zs";
29+ url = "mirror://gnome/sources/pitivi/${gnome3.versionBranch version}/${name}.tar.xz";
30+ sha256 = "0z4gvcr0cvyz2by47f36nqf7x2kfv9wn382w9glhs7l0d7b2zl69";
3231 };
3332
34− nativeBuildInputs = [ pkgconfig intltool itstool wrapGAppsHook ];
33+ format = "other";
34+
35+ patches = [
36+ # By default, the build picks up environment variables like PYTHONPATH
37+ # and saves them to the generated binary. This would make the build-time
38+ # dependencies part of the closure so we remove it.
39+ ./prevent-closure-contamination.patch
40+ ];
41+
42+ postPatch = ''
43+ patchShebangs ./getenvvar.py
44+ '';
45+
46+ nativeBuildInputs = [ meson ninja pkgconfig intltool itstool wrapGAppsHook ];
3547
3648 buildInputs = [
37− gobjectIntrospection gtk3 librsvg gnome3.gnome-desktop
49+ gobjectIntrospection gtk3 librsvg gnome3.gnome-desktop gnome3.gsound
3850 gnome3.defaultIconTheme
3951 gnome3.gsettings-desktop-schemas libnotify
4052 gst-transcoder
4153 ] ++ (with gst; [
4254 gstreamer gst-editing-services
43− gst-plugins-base gst-plugins-good
55+ gst-plugins-base (gst-plugins-good.override { gtkSupport = true; })
4456 gst-plugins-bad gst-plugins-ugly gst-libav gst-validate
45− ]) ++ (with python3Packages; [
46− python pygobject3 gst-python pyxdg numpy pycairo matplotlib
47− dbus-python
4857 ]);
4958
59+ pythonPath = with python3Packages; [ pygobject3 gst-python pyxdg numpy pycairo matplotlib dbus-python ];
60+
61+ passthru = {
62+ updateScript = gnome3.updateScript {
63+ packageName = "pitivi";
64+ versionPolicy = "none"; # we are using dev version, since the stable one is too old
65+ };
66+ };
67+
5068 meta = with stdenv.lib; {
5169 description = "Non-Linear video editor utilizing the power of GStreamer";
52− homepage = "http://pitivi.org/";
70+ homepage = http://pitivi.org/;
5371 longDescription = ''
5472 Pitivi is a video editor built upon the GStreamer Editing Services.
5573 It aims to be an intuitive and flexible application
5674 that can appeal to newbies and professionals alike.
5775 '';
58− license = licenses.lgpl21Plus;
59− platforms = platforms.linux;
76+ license = licenses.lgpl21Plus;
77+ maintainers = with maintainers; [];
78+ platforms = platforms.linux;
6079 };
6180}