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