Merge pull request #196079 from zendo/update-trimmer

video-trimmer: 0.7.1 -> 0.8.0
This commit is contained in:
Doron Behar 2022-10-17 06:39:16 +00:00 committed by GitHub
commit 65325ce8f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitLab , fetchFromGitLab
, fetchpatch
, rustPlatform , rustPlatform
, pkg-config , pkg-config
, meson , meson
@ -9,42 +8,34 @@
, desktop-file-utils , desktop-file-utils
, blueprint-compiler , blueprint-compiler
, ninja , ninja
, gobject-introspection
, gtk4 , gtk4
, libadwaita , libadwaita
, gst_all_1 , gst_all_1
, ffmpeg-full
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "video-trimmer"; pname = "video-trimmer";
version = "0.7.1"; version = "0.8.0";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
owner = "YaLTeR"; owner = "YaLTeR";
repo = "video-trimmer"; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-D7wjJkdqqjjwwYEUZnNr7hFQK59wfTnaCLXCy+SK8Jo="; hash = "sha256-0zhQoxzU1GikYP5OwqMl34RsnefJtdZox5EuTqOFnas=";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-cB5dVrEbISvHrOb87uVZSkT694VKtPtyk+c1tYNCTp0="; hash = "sha256-kH9AfEskh7TTXF+PZwOZNWVJmnEeMJrSEEuDGyP5A5o=";
}; };
patches = [
# 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=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
meson meson
wrapGAppsHook4 wrapGAppsHook4
gobject-introspection
desktop-file-utils desktop-file-utils
blueprint-compiler blueprint-compiler
ninja ninja
@ -68,6 +59,12 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ ffmpeg-full ]}"
)
'';
meta = with lib; { meta = with lib; {
homepage = "https://gitlab.gnome.org/YaLTeR/video-trimmer"; homepage = "https://gitlab.gnome.org/YaLTeR/video-trimmer";
description = "Trim videos quickly"; description = "Trim videos quickly";