Merge pull request #189562 from doronbehar/pkg/video-trimmer

Changed files
+11 -42
pkgs
applications
+11 -25
pkgs/applications/video/video-trimmer/default.nix
···
{ stdenv
, lib
, fetchFromGitLab
+
, fetchpatch
, rustPlatform
, gnome
, pkg-config
, meson
, wrapGAppsHook4
-
, appstream-glib
, desktop-file-utils
, blueprint-compiler
, ninja
-
, python3
-
, gtk3-x11
-
, glib
, gobject-introspection
, gtk4
, libadwaita
···
};
patches = [
-
# The metainfo.xml file has a URL to a screenshot of the application,
-
# unaccessible in the build's sandbox. We don't need the screenshot, so
-
# it's best to remove it.
-
./remove-screenshot-metainfo.diff
+
# https://gitlab.gnome.org/YaLTeR/video-trimmer/-/merge_requests/12
+
(fetchpatch {
+
url = "https://gitlab.gnome.org/YaLTeR/video-trimmer/-/commit/2faf4bb13d44463ea940c39ece9187f76627dbe9.diff";
+
sha256 = "sha256-BPjwfFCDIqnS1rAlIinQ982VKdAYLyzDAPLCmPDvdp4=";
+
})
];
-
postPatch = ''
-
patchShebangs \
-
build-aux/meson/postinstall.py \
-
build-aux/cargo.sh \
-
build-aux/dist-vendor.sh
-
'';
-
nativeBuildInputs = [
pkg-config
meson
wrapGAppsHook4
-
appstream-glib
+
gobject-introspection
desktop-file-utils
blueprint-compiler
ninja
-
# For post-install.py
-
python3
-
gtk3-x11 # For gtk-update-icon-cache
-
glib # For glib-compile-schemas
+
# Present here in addition to buildInputs, because meson runs
+
# `gtk4-update-icon-cache` during installPhase, thanks to:
+
# https://gitlab.gnome.org/YaLTeR/video-trimmer/-/merge_requests/12
+
gtk4
] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
···
]);
buildInputs = [
-
gobject-introspection
gtk4
libadwaita
gst_all_1.gstreamer
···
];
doCheck = true;
-
-
passthru.updateScript = gnome.updateScript {
-
packageName = pname;
-
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/YaLTeR/video-trimmer";
-17
pkgs/applications/video/video-trimmer/remove-screenshot-metainfo.diff
···
-
diff --git i/data/org.gnome.gitlab.YaLTeR.VideoTrimmer.metainfo.xml.in.in w/data/org.gnome.gitlab.YaLTeR.VideoTrimmer.metainfo.xml.in.in
-
index 9bd25b6..c627369 100644
-
--- i/data/org.gnome.gitlab.YaLTeR.VideoTrimmer.metainfo.xml.in.in
-
+++ w/data/org.gnome.gitlab.YaLTeR.VideoTrimmer.metainfo.xml.in.in
-
@@ -19,12 +19,6 @@
-
Video Trimmer cuts out a fragment of a video given the start and end timestamps. The video is never re-encoded, so the process is very fast and does not reduce the video quality.
-
</p>
-
</description>
-
- <screenshots>
-
- <screenshot type="default">
-
- <image>https://gitlab.gnome.org/YaLTeR/video-trimmer/uploads/e840fa093439348448007197d07c8033/image.png</image>
-
- <caption>Main Window</caption>
-
- </screenshot>
-
- </screenshots>
-
<releases>
-
<release version="0.7.1" date="2022-03-23">
-
<description>