tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libchewing: 0.6.0 -> 0.9.1
emaryn
9 months ago
16c816d5
23d3cb96
+32
-11
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
li
libchewing
package.nix
+32
-11
pkgs/by-name/li/libchewing/package.nix
···
4
fetchFromGitHub,
5
cmake,
6
sqlite,
0
0
0
0
7
}:
8
9
stdenv.mkDerivation (finalAttrs: {
10
pname = "libchewing";
11
-
version = "0.6.0";
12
13
src = fetchFromGitHub {
14
owner = "chewing";
15
repo = "libchewing";
16
-
rev = "v${finalAttrs.version}";
17
-
sha256 = "sha256-X+4Rr5Mfc4qeJxmHczu4MKgHBvQN1rhqUrJSx8SFnDk=";
18
};
19
20
-
buildInputs = [ sqlite ];
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
21
22
-
nativeBuildInputs = [ cmake ];
0
0
0
23
24
-
meta = with lib; {
25
description = "Intelligent Chinese phonetic input method";
26
homepage = "https://chewing.im/";
27
-
license = licenses.lgpl21Only;
28
-
maintainers = with maintainers; [
29
-
ShamrockLee
30
-
];
31
-
platforms = platforms.all;
32
# compile time tools init_database, dump_database are built for host
33
broken = !stdenv.buildPlatform.canExecute stdenv.hostPlatform;
34
};
···
4
fetchFromGitHub,
5
cmake,
6
sqlite,
7
+
corrosion,
8
+
rustPlatform,
9
+
cargo,
10
+
rustc,
11
}:
12
13
stdenv.mkDerivation (finalAttrs: {
14
pname = "libchewing";
15
+
version = "0.9.1";
16
17
src = fetchFromGitHub {
18
owner = "chewing";
19
repo = "libchewing";
20
+
tag = "v${finalAttrs.version}";
21
+
hash = "sha256-5aeAsvTiUMTm+ibNfJI57rzSUpJB7luhA/aWmTcnBj4=";
22
};
23
24
+
# ld: unknown option: -version-script
25
+
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
26
+
substituteInPlace CMakeLists.txt \
27
+
--replace-fail "if(CMAKE_C_COMPILER_ID MATCHES GNU|^Clang)" "if((CMAKE_C_COMPILER_ID MATCHES GNU|^Clang) AND NOT APPLE)"
28
+
'';
29
+
30
+
cargoDeps = rustPlatform.fetchCargoVendor {
31
+
inherit (finalAttrs) src;
32
+
hash = "sha256-LTuUhQ0ZeyGloNvVs+6OGjFvPdBsQNZupwC8QTjUfyk=";
33
+
};
34
+
35
+
nativeBuildInputs = [
36
+
cmake
37
+
rustPlatform.cargoSetupHook
38
+
cargo
39
+
rustc
40
+
];
41
42
+
buildInputs = [
43
+
sqlite
44
+
corrosion
45
+
];
46
47
+
meta = {
48
description = "Intelligent Chinese phonetic input method";
49
homepage = "https://chewing.im/";
50
+
license = lib.licenses.lgpl21Only;
51
+
maintainers = with lib.maintainers; [ ShamrockLee ];
52
+
platforms = lib.platforms.all;
0
0
53
# compile time tools init_database, dump_database are built for host
54
broken = !stdenv.buildPlatform.canExecute stdenv.hostPlatform;
55
};