2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, librime }:
|
2017-09-13 14:37:32 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2017-09-13 14:37:32 +02:00
|
|
|
name = "brise-unstable-2017-09-16";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rime";
|
|
|
|
repo = "brise";
|
|
|
|
rev = "1cfb0fe1d3a4190ce5d034f141941156dd271e80";
|
|
|
|
sha256 = "1l13j3cfwida0ycl874fizz2jwjvlxid589a1iciqa9y25k21ql7";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ librime ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs scripts/*
|
|
|
|
'';
|
|
|
|
|
|
|
|
# we need to use fetchFromGitHub to fetch sub-packages before we 'make',
|
|
|
|
# since nix won't allow networking during 'make'
|
|
|
|
preBuild = import ./fetchPackages.nix fetchFromGitHub;
|
|
|
|
|
|
|
|
makeFlags = [ "BRISE_BUILD_BINARIES=yes" "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-09-13 14:37:32 +02:00
|
|
|
description = "Rime Schema Repository";
|
|
|
|
longDescription = ''
|
|
|
|
This software is a collection of data packages used by Rime
|
|
|
|
to support various Chinese input methods, including those based on
|
|
|
|
modern dialects or historical diasystems of the Chinese language.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://rime.im";
|
2017-09-13 14:37:32 +02:00
|
|
|
# Note that individual packages in this collection
|
|
|
|
# may be released under different licenses
|
|
|
|
license = licenses.gpl3;
|
2018-03-11 16:46:05 +01:00
|
|
|
platforms = platforms.linux;
|
2017-10-03 14:07:12 +02:00
|
|
|
maintainers = [ maintainers.sifmelcara ];
|
2017-09-13 14:37:32 +02:00
|
|
|
};
|
|
|
|
}
|