···11+{ stdenv, fetchFromGitHub, librime }:
22+33+stdenv.mkDerivation rec {
44+ name = "brise-unstable-2017-09-16";
55+66+ src = fetchFromGitHub {
77+ owner = "rime";
88+ repo = "brise";
99+ rev = "1cfb0fe1d3a4190ce5d034f141941156dd271e80";
1010+ sha256 = "1l13j3cfwida0ycl874fizz2jwjvlxid589a1iciqa9y25k21ql7";
1111+ };
1212+1313+ buildInputs = [ librime ];
1414+1515+ postPatch = ''
1616+ patchShebangs scripts/*
1717+ '';
1818+1919+ # we need to use fetchFromGitHub to fetch sub-packages before we 'make',
2020+ # since nix won't allow networking during 'make'
2121+ preBuild = import ./fetchPackages.nix fetchFromGitHub;
2222+2323+ makeFlags = [ "BRISE_BUILD_BINARIES=yes" "PREFIX=$(out)" ];
2424+2525+ enableParallelBuilding = true;
2626+2727+ meta = with stdenv.lib; {
2828+ description = "Rime Schema Repository";
2929+ longDescription = ''
3030+ This software is a collection of data packages used by Rime
3131+ to support various Chinese input methods, including those based on
3232+ modern dialects or historical diasystems of the Chinese language.
3333+ '';
3434+ homepage = http://rime.im;
3535+ # Note that individual packages in this collection
3636+ # may be released under different licenses
3737+ license = licenses.gpl3;
3838+ platforms = platforms.all;
3939+ maintainers = [ maintainers.sifmelcara ];
4040+ };
4141+}