mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
pythonPackages.pycangjie: switch to fetchFromGitHub
This commit is contained in:
parent
aa57bfb3ea
commit
aac43ad47d
1 changed files with 19 additions and 6 deletions
|
@ -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 ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue