1{ lib, stdenv, fetchFromGitHub, librime }:
2
3stdenv.mkDerivation {
4 pname = "brise";
5 version = "unstable-2017-09-16";
6
7 src = fetchFromGitHub {
8 owner = "rime";
9 repo = "brise";
10 rev = "1cfb0fe1d3a4190ce5d034f141941156dd271e80";
11 sha256 = "1l13j3cfwida0ycl874fizz2jwjvlxid589a1iciqa9y25k21ql7";
12 };
13
14 buildInputs = [ librime ];
15
16 postPatch = ''
17 patchShebangs scripts/*
18 '';
19
20 # we need to use fetchFromGitHub to fetch sub-packages before we 'make',
21 # since nix won't allow networking during 'make'
22 preBuild = import ./fetchPackages.nix fetchFromGitHub;
23
24 makeFlags = [ "BRISE_BUILD_BINARIES=yes" "PREFIX=$(out)" ];
25
26 enableParallelBuilding = true;
27
28 meta = with lib; {
29 description = "Rime Schema Repository";
30 longDescription = ''
31 This software is a collection of data packages used by Rime
32 to support various Chinese input methods, including those based on
33 modern dialects or historical diasystems of the Chinese language.
34 '';
35 homepage = "https://rime.im";
36 # Note that individual packages in this collection
37 # may be released under different licenses
38 license = licenses.gpl3;
39 platforms = platforms.linux;
40 maintainers = [ maintainers.sifmelcara ];
41 };
42}