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