diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libcangjie')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libcangjie/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libcangjie/default.nix b/nixpkgs/pkgs/development/libraries/libcangjie/default.nix new file mode 100644 index 000000000000..6838362c7942 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libcangjie/default.nix @@ -0,0 +1,35 @@ +{ stdenv, autoconf, automake, libtool, m4, fetchurl, bash, pkgconfig, sqlite }: + +stdenv.mkDerivation rec { + name = "libcangjie-${version}"; + version = "1.4_rev_${rev}"; + rev = "a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d"; + + src = fetchurl { + url = "https://github.com/Cangjians/libcangjie/archive/${rev}.tar.gz"; + sha256 = "0i5svvcx099fc9hh5dvr3gpb1041v6vn5fnylxy82zjy239114lg"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ automake autoconf libtool m4 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 = stdenv.lib.licenses.lgpl3Plus; + + maintainers = [ stdenv.lib.maintainers.linquize ]; + platforms = stdenv.lib.platforms.all; + }; +} |