summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2022-01-04 16:38:13 +0100
committerFelix Buehler <account@buehler.rocks>2022-01-05 00:09:39 +0100
commitdc2909ec58ee6e46872d4249af92f3022cb3fc49 (patch)
tree17c48f81721aa209a6b52606b5032e9b4940b121
parent33d3282770622a68d0597039a2238238db9ccdf7 (diff)
downloadnixpkgs-dc2909ec58ee6e46872d4249af92f3022cb3fc49.tar
nixpkgs-dc2909ec58ee6e46872d4249af92f3022cb3fc49.tar.gz
nixpkgs-dc2909ec58ee6e46872d4249af92f3022cb3fc49.tar.bz2
nixpkgs-dc2909ec58ee6e46872d4249af92f3022cb3fc49.tar.lz
nixpkgs-dc2909ec58ee6e46872d4249af92f3022cb3fc49.tar.xz
nixpkgs-dc2909ec58ee6e46872d4249af92f3022cb3fc49.tar.zst
nixpkgs-dc2909ec58ee6e46872d4249af92f3022cb3fc49.zip
libcangjie: switch to fetchFromGitLab & update homepage
-rw-r--r--pkgs/development/libraries/libcangjie/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/libraries/libcangjie/default.nix b/pkgs/development/libraries/libcangjie/default.nix
index c6bbbcdb61a..b0c02eaa6bc 100644
--- a/pkgs/development/libraries/libcangjie/default.nix
+++ b/pkgs/development/libraries/libcangjie/default.nix
@@ -1,13 +1,15 @@
-{ lib, stdenv, autoconf, automake, libtool, m4, fetchurl, bash, pkg-config, sqlite }:
+{ lib, stdenv, autoconf, automake, libtool, m4, fetchFromGitLab, bash, pkg-config, sqlite }:
 
 stdenv.mkDerivation rec {
   pname = "libcangjie";
   version = "1.4_rev_${rev}";
   rev = "a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d";
 
-  src = fetchurl {
-    url = "https://github.com/Cangjians/libcangjie/archive/${rev}.tar.gz";
-    sha256 = "0i5svvcx099fc9hh5dvr3gpb1041v6vn5fnylxy82zjy239114lg";
+  src = fetchFromGitLab {
+    owner = "Cangjians";
+    repo = "libcangjie";
+    inherit rev;
+    sha256 = "sha256-R7WqhxciaTxhTiwPp2EUNTOh477gi/Pj3VpMtat5qXw=";
   };
 
   nativeBuildInputs = [ pkg-config ];
@@ -26,7 +28,7 @@ stdenv.mkDerivation rec {
     longDescription = ''
       libcangjie is a library implementing the Cangjie input method.
     '';
-    homepage = "http://cangjians.github.io/projects/libcangjie/";
+    homepage = "https://gitlab.freedesktop.org/cangjie/libcangjie";
     license = lib.licenses.lgpl3Plus;
 
     maintainers = [ lib.maintainers.linquize ];