crow-translate: 2.9.5 -> 2.9.8
This commit is contained in:
parent
a9cb0e518a
commit
5bd7f94572
1 changed files with 19 additions and 17 deletions
|
@ -1,11 +1,11 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, nix-update-script
|
, fetchzip
|
||||||
, fetchFromGitHub
|
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, cmake
|
, cmake
|
||||||
, extra-cmake-modules
|
, extra-cmake-modules
|
||||||
, qttools
|
, qttools
|
||||||
|
, kwayland
|
||||||
, leptonica
|
, leptonica
|
||||||
, tesseract4
|
, tesseract4
|
||||||
, qtmultimedia
|
, qtmultimedia
|
||||||
|
@ -16,14 +16,11 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "crow-translate";
|
pname = "crow-translate";
|
||||||
version = "2.9.5";
|
version = "2.9.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchzip {
|
||||||
owner = "crow-translate";
|
url = "https://github.com/${pname}/${pname}/releases/download/${version}/${pname}-${version}-source.tar.gz";
|
||||||
repo = pname;
|
hash = "sha256-ZqiQVpKwGpglSc05Y1r6uScZyG4qnklPXqTGKxpS3f8=";
|
||||||
rev = version;
|
|
||||||
sha256 = "sha256-AzwJJ85vxXsc0+W3QM8citN5f0AD6APQVd9628cfLgI=";
|
|
||||||
fetchSubmodules = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -34,21 +31,26 @@ stdenv.mkDerivation rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake extra-cmake-modules qttools wrapQtAppsHook ];
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
extra-cmake-modules
|
||||||
|
qttools
|
||||||
|
wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ leptonica tesseract4 qtmultimedia qtx11extras ];
|
buildInputs = [
|
||||||
|
kwayland
|
||||||
|
leptonica
|
||||||
|
tesseract4
|
||||||
|
qtmultimedia
|
||||||
|
qtx11extras
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
substituteInPlace $out/share/applications/io.crow_translate.CrowTranslate.desktop \
|
substituteInPlace $out/share/applications/io.crow_translate.CrowTranslate.desktop \
|
||||||
--replace "Exec=qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
|
--replace "Exec=qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
|
||||||
updateScript = nix-update-script {
|
|
||||||
attrPath = pname;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A simple and lightweight translator that allows to translate and speak text using Google, Yandex and Bing";
|
description = "A simple and lightweight translator that allows to translate and speak text using Google, Yandex and Bing";
|
||||||
homepage = "https://crow-translate.github.io/";
|
homepage = "https://crow-translate.github.io/";
|
||||||
|
|
Loading…
Reference in a new issue