Skip to content

Commit

Permalink
pitivi: 2021.05 → 2022.06
Browse files Browse the repository at this point in the history
https://gitlab.gnome.org/GNOME/pitivi/-/compare/2021.05.0...2022.06.0

- Add librosa for beat detection
- Also remove some dependencies that have long been unneeded.
  • Loading branch information
jtojnar committed Jul 2, 2022
1 parent c621795 commit e13726c
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions pkgs/applications/video/pitivi/default.nix
Original file line number Diff line number Diff line change
@@ -1,49 +1,39 @@
{ lib
, fetchurl
, fetchpatch
, pkg-config
, gettext
, itstool
, python3
, wrapGAppsHook
, python3Packages
, gst_all_1
, gtk3
, gobject-introspection
, libpeas
, librsvg
, gnome
, gnome-desktop
, libnotify
, gsound
, meson
, ninja
, gsettings-desktop-schemas
}:

python3Packages.buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "pitivi";
version = "2021.05";
version = "2022.06";

format = "other";

src = fetchurl {
url = "mirror://gnome/sources/pitivi/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "z1aTxGxCqw2hSi5Zv89LyIBgS0HpzTqo0uvcYIJ7dcc=";
sha256 = "Uz0448bSEcK9DpXiuWsPCDO98NXUd6zgffYRWDUGyDg=";
};

patches = [
# By default, the build picks up environment variables like PYTHONPATH
# and saves them to the generated binary. This would make the build-time
# dependencies part of the closure so we remove it.
./prevent-closure-contamination.patch

# Fix build with meson 0.61
# https://gitlab.gnome.org/GNOME/pitivi/-/merge_requests/414
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/pitivi/-/commit/ddf2369d1fc6fddd63f676cc905a8b8e96291a4c.patch";
sha256 = "MC4naGnqhrYlFBFHZaSzbOzrqaNK5/Xv5jBmCu0fLQE=";
})
];

nativeBuildInputs = [
Expand All @@ -61,9 +51,7 @@ python3Packages.buildPythonApplication rec {
gtk3
libpeas
librsvg
gnome-desktop
gsound
gnome.adwaita-icon-theme
gsettings-desktop-schemas
libnotify
] ++ (with gst_all_1; [
Expand All @@ -77,14 +65,13 @@ python3Packages.buildPythonApplication rec {
gst-devtools
]);

pythonPath = with python3Packages; [
pythonPath = with python3.pkgs; [
pygobject3
gst-python
pyxdg
numpy
pycairo
matplotlib
dbus-python
librosa
];

postPatch = ''
Expand Down

0 comments on commit e13726c

Please sign in to comment.