about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorlinsui <linsui555@gmail.com>2022-05-19 21:33:25 +0800
committerehmry <ehmry@posteo.net>2022-05-20 08:22:42 -0500
commit5bd7f9457276b64760a76e76f5992217a051401e (patch)
tree056ae5250daf547fd6b1223a1149991924270096 /pkgs
parenta9cb0e518ac3280fa034f3d438754a5f872b0ce2 (diff)
crow-translate: 2.9.5 -> 2.9.8
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/crow-translate/default.nix36
1 files changed, 19 insertions, 17 deletions
diff --git a/pkgs/applications/misc/crow-translate/default.nix b/pkgs/applications/misc/crow-translate/default.nix
index 09a7595765d9c..dfd072fa5d923 100644
--- a/pkgs/applications/misc/crow-translate/default.nix
+++ b/pkgs/applications/misc/crow-translate/default.nix
@@ -1,11 +1,11 @@
 { lib
 , stdenv
-, nix-update-script
-, fetchFromGitHub
+, fetchzip
 , substituteAll
 , cmake
 , extra-cmake-modules
 , qttools
+, kwayland
 , leptonica
 , tesseract4
 , qtmultimedia
@@ -16,14 +16,11 @@
 
 stdenv.mkDerivation rec {
   pname = "crow-translate";
-  version = "2.9.5";
+  version = "2.9.8";
 
-  src = fetchFromGitHub {
-    owner = "crow-translate";
-    repo = pname;
-    rev = version;
-    sha256 = "sha256-AzwJJ85vxXsc0+W3QM8citN5f0AD6APQVd9628cfLgI=";
-    fetchSubmodules = true;
+  src = fetchzip {
+    url = "https://github.com/${pname}/${pname}/releases/download/${version}/${pname}-${version}-source.tar.gz";
+    hash = "sha256-ZqiQVpKwGpglSc05Y1r6uScZyG4qnklPXqTGKxpS3f8=";
   };
 
   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 = ''
     substituteInPlace $out/share/applications/io.crow_translate.CrowTranslate.desktop \
       --replace "Exec=qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
   '';
 
-  passthru = {
-    updateScript = nix-update-script {
-      attrPath = pname;
-    };
-  };
-
   meta = with lib; {
     description = "A simple and lightweight translator that allows to translate and speak text using Google, Yandex and Bing";
     homepage = "https://crow-translate.github.io/";