diff options
author | Linquize <linquize@yahoo.com.hk> | 2014-01-30 15:38:34 +0100 |
---|---|---|
committer | Linquize <linquize@yahoo.com.hk> | 2014-01-30 17:33:34 +0100 |
commit | c27148d65038ec3e661b88daf7c9e2da395e9a19 (patch) | |
tree | 8ba378e3d47655b3deccb63115c0edb2e88cdcdf /pkgs/development/libraries/libcangjie | |
parent | cdd86c7875c7e31b69d1a859c0f8c6a9deb3266f (diff) | |
download | nixpkgs-c27148d65038ec3e661b88daf7c9e2da395e9a19.tar nixpkgs-c27148d65038ec3e661b88daf7c9e2da395e9a19.tar.gz nixpkgs-c27148d65038ec3e661b88daf7c9e2da395e9a19.tar.bz2 nixpkgs-c27148d65038ec3e661b88daf7c9e2da395e9a19.tar.lz nixpkgs-c27148d65038ec3e661b88daf7c9e2da395e9a19.tar.xz nixpkgs-c27148d65038ec3e661b88daf7c9e2da395e9a19.tar.zst nixpkgs-c27148d65038ec3e661b88daf7c9e2da395e9a19.zip |
Add libcangjie
Diffstat (limited to 'pkgs/development/libraries/libcangjie')
-rw-r--r-- | pkgs/development/libraries/libcangjie/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libcangjie/default.nix b/pkgs/development/libraries/libcangjie/default.nix new file mode 100644 index 00000000000..695c0fa1a32 --- /dev/null +++ b/pkgs/development/libraries/libcangjie/default.nix @@ -0,0 +1,32 @@ +{ stdenv, autoconf, automake, libtool, m4, fetchurl, bash, pkgconfig, sqlite }: + +stdenv.mkDerivation rec { + name = "libcangjie-1.0"; + + src = fetchurl { + url = "https://github.com/Cangjians/libcangjie/archive/v1.0.tar.gz"; + sha256 = "15la1pxa2fvhznlbkl32qp2cgd602bvrx2zmahybypbfik0cgqk1"; + }; + + buildInputs = [ automake autoconf libtool m4 pkgconfig sqlite ]; + + configureScript = "./autogen.sh"; + + preConfigure = '' + find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';' + ''; + + doCheck = true; + + meta = { + description = "A C library implementing the Cangjie input method"; + longDescription = '' + libcangjie is a library implementing the Cangjie input method. + ''; + homepage = http://cangjians.github.io/projects/libcangjie/; + license = "LGPLv3+"; + + maintainers = [ stdenv.lib.maintainers.linquize ]; + platforms = stdenv.lib.platforms.all; + }; +} |