mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +00:00
46 lines
822 B
Nix
46 lines
822 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
sqlite,
|
|
cppcheck,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcangjie";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "cangjie";
|
|
repo = "libcangjie";
|
|
rev = "v${version}";
|
|
hash = "sha256-LZRU2hbAC8xftPAIHDKCa2SfFLuH/PVqvjZmOSoUQwc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
sqlite
|
|
cppcheck
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "C library implementing the Cangjie input method";
|
|
homepage = "https://gitlab.freedesktop.org/cangjie/libcangjie";
|
|
license = lib.licenses.lgpl3Plus;
|
|
maintainers = [ lib.maintainers.linquize ];
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "libcangjie-cli";
|
|
};
|
|
}
|