crow-translate: 2.11.1 → 3.0.0 (#342901)

This commit is contained in:
Nikolay Korotkiy 2024-09-19 19:51:15 +04:00 committed by GitHub
commit c6088c08c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
{ lib
, stdenv
, fetchzip
, fetchFromGitLab
, cmake
, extra-cmake-modules
, qttools
@ -12,21 +12,24 @@
, wrapQtAppsHook
, gst_all_1
, testers
, crow-translate
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "crow-translate";
version = "2.11.1";
version = "3.0.0";
src = fetchzip {
url = "https://github.com/${pname}/${pname}/releases/download/${version}/${pname}-${version}-source.tar.gz";
hash = "sha256-1rq1pF4tOaZNEaHflxlBuHta80EzD9m3O99geR1EPxE=";
src = fetchFromGitLab {
domain = "invent.kde.org";
owner = "office";
repo = "crow-translate";
rev = "v${finalAttrs.version}";
hash = "sha256-hdrhxbv44DlxoF1JU1d2auP/vR8a3IJI+hN7PhdPMaY=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace data/io.crow_translate.CrowTranslate.desktop \
--replace "Exec=qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
substituteInPlace data/org.kde.CrowTranslate.desktop.in \
--subst-var-by QT_BIN_DIR ${lib.getBin qttools}/bin
'';
nativeBuildInputs = [
@ -54,15 +57,15 @@ stdenv.mkDerivation rec {
'';
passthru.tests.version = testers.testVersion {
package = crow-translate;
package = finalAttrs.finalPackage;
};
meta = with lib; {
meta = {
description = "Simple and lightweight translator that allows to translate and speak text using Google, Yandex and Bing";
homepage = "https://crow-translate.github.io/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.linux;
homepage = "https://invent.kde.org/office/crow-translate";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ sikmir ];
platforms = lib.platforms.linux;
mainProgram = "crow";
};
}
})