uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
pkgs/development/libraries/librime/default.nix
Normal file
36
pkgs/development/libraries/librime/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
|
||||
libyamlcpp, gtest, capnproto, pkg-config, plugins ? [ ] }:
|
||||
|
||||
let
|
||||
copySinglePlugin = plug: "cp -r ${plug} plugins/${plug.name}";
|
||||
copyPlugins = ''
|
||||
${lib.concatMapStringsSep "\n" copySinglePlugin plugins}
|
||||
chmod +w -R plugins/*
|
||||
'';
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "librime";
|
||||
version = "1.7.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rime";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-GzNMwyJR9PgJN0eGYbnBW6LS3vo4SUVLdyNG9kcEE18=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = [ boost glog leveldb marisa opencc libyamlcpp gtest capnproto ]
|
||||
++ plugins; # for propagated build inputs
|
||||
|
||||
preConfigure = copyPlugins;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://rime.im/";
|
||||
description = "Rime Input Method Engine, the core library";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ vonfry ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue