0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

pythonPackages.pycangjie: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-10-30 13:38:53 +02:00 committed by Jonathan Ringer
parent aa57bfb3ea
commit aac43ad47d

View file

@ -1,19 +1,32 @@
{ lib, fetchurl, bash, autoconf, automake, libtool, pkg-config, libcangjie { lib
, sqlite, buildPythonPackage, cython , fetchFromGitHub
, bash
, autoconf
, automake
, libtool
, pkg-config
, libcangjie
, sqlite
, buildPythonPackage
, cython
}: }:
let let
rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3"; rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3";
in buildPythonPackage { in
buildPythonPackage {
pname = "pycangjie"; pname = "pycangjie";
version = "1.3_rev_${rev}"; version = "1.3_rev_${rev}";
format = "other"; format = "other";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/Cangjians/pycangjie/archive/${rev}.tar.gz"; owner = "Cangjians";
sha256 = "12yi09nyffmn4va7lzk4irw349qzlbxgsnb89dh15cnw0xmrin05"; repo = "pycangjie";
inherit rev;
sha256 = "sha256-sS0Demzm89WtEIN4Efz0OTsUQ/c3gIX+/koekQGOca4=";
}; };
nativeBuildInputs = [ pkg-config libtool autoconf automake cython ]; nativeBuildInputs = [ pkg-config libtool autoconf automake cython ];
buildInputs = [ libcangjie sqlite ]; buildInputs = [ libcangjie sqlite ];