From 7b7e1c4131de4de8cb72a19c732181deca8e1fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kugland?= Date: Wed, 6 Mar 2024 00:23:13 -0300 Subject: [PATCH] subtitlecomposer: init at 0.8.0 --- default.nix | 1 + pkgs/subtitlecomposer/default.nix | 54 +++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 pkgs/subtitlecomposer/default.nix diff --git a/default.nix b/default.nix index 0243eb8..2f91b9f 100644 --- a/default.nix +++ b/default.nix @@ -8,4 +8,5 @@ ffsubsync = pkgs.callPackage ./pkgs/ffsubsync {inherit auditok pysubs2;}; neocities-deploy = pkgs.callPackage ./pkgs/neocities-deploy {}; pysubs2 = pkgs.callPackage ./pkgs/pysubs2 {}; + subtitlecomposer = pkgs.callPackage ./pkgs/subtitlecomposer {}; } diff --git a/pkgs/subtitlecomposer/default.nix b/pkgs/subtitlecomposer/default.nix new file mode 100644 index 0000000..21f71c1 --- /dev/null +++ b/pkgs/subtitlecomposer/default.nix @@ -0,0 +1,54 @@ +# This package is already merged into nixpkgs unstable, but I'll keep it here to +# use it until it and to cache its build on cachix until it goes to stable. + +{ lib +, fetchFromGitLab +, cmake +, extra-cmake-modules +, ffmpeg +, openal +, stdenv +, libsForQt5 +}: + +stdenv.mkDerivation rec { + pname = "subtitlecomposer"; + version = "0.8.0"; + + src = fetchFromGitLab { + domain = "invent.kde.org"; + owner = "multimedia"; + repo = "subtitlecomposer"; + rev = "v${version}"; + hash = "sha256-RKS3VTtpxnox0hzessMHmoGPpT+Ho0b3fxtQMGw9OrM="; + }; + + nativeBuildInputs = [ cmake extra-cmake-modules libsForQt5.wrapQtAppsHook ]; + buildInputs = [ ffmpeg openal ] ++ (with libsForQt5; [ + kcodecs + kconfig + kconfigwidgets + kcoreaddons + ki18n + kio + ktextwidgets + kwidgetsaddons + kxmlgui + sonnet + ]); + + meta = with lib; { + homepage = "https://apps.kde.org/subtitlecomposer"; + description = "An open source text-based subtitle editor"; + longDescription = '' + An open source text-based subtitle editor that supports basic and + advanced editing operations, aiming to become an improved version of + Subtitle Workshop for every platform supported by Plasma Frameworks. + ''; + changelog = "https://invent.kde.org/multimedia/subtitlecomposer/-/blob/master/ChangeLog"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ ]; + mainProgram = "subtitlecomposer"; + platforms = with platforms; linux ++ freebsd ++ windows; + }; +}