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

This commit is contained in:
Doron Behar 2022-09-03 14:04:29 +00:00 committed by GitHub
commit 1134c6d957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 42 deletions

View file

@ -1,18 +1,15 @@
{ 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
@ -37,31 +34,25 @@ stdenv.mkDerivation rec {
};
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
@ -69,7 +60,6 @@ stdenv.mkDerivation rec {
]);
buildInputs = [
gobject-introspection
gtk4
libadwaita
gst_all_1.gstreamer
@ -79,10 +69,6 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru.updateScript = gnome.updateScript {
packageName = pname;
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/YaLTeR/video-trimmer";
description = "Trim videos quickly";

View file

@ -1,17 +0,0 @@
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>