20 stdenv.mkDerivation (finalAttrs: {
21 pname = "video-trimmer";
24 src = fetchFromGitLab {
25 domain = "gitlab.gnome.org";
27 repo = "video-trimmer";
28 rev = "refs/tags/v${finalAttrs.version}";
29 hash = "sha256-4B3NNGww+UjI/VbsKL62vWlKye7NYXYPzlJ4TfywJDw=";
32 cargoDeps = rustPlatform.fetchCargoTarball {
33 inherit (finalAttrs) pname version src;
34 hash = "sha256-vtV5TrF81TK4PUwzOF/CuDsKH1vTLO+4PFufyIOp2zk=";
44 # Present here in addition to buildInputs, because meson runs
45 # `gtk4-update-icon-cache` during installPhase, thanks to:
46 # https://gitlab.gnome.org/YaLTeR/video-trimmer/-/merge_requests/12
48 rustPlatform.cargoSetupHook
57 gst_all_1.gst-plugins-base
58 gst_all_1.gst-plugins-good # for scaletempo and webm
59 gst_all_1.gst-plugins-bad
68 --prefix PATH : "${lib.makeBinPath [ ffmpeg-headless ]}"
73 homepage = "https://gitlab.gnome.org/YaLTeR/video-trimmer";
74 description = "Trim videos quickly";
80 ++ lib.teams.gnome-circle.members;
81 license = lib.licenses.gpl3Plus;
82 platforms = lib.platforms.linux;
83 mainProgram = "video-trimmer";