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
|
|
@ -0,0 +1,30 @@
|
|||
{ typing-booster, symlinkJoin, hunspellDicts, lib, makeWrapper
|
||||
, langs ? [ "de-de" "en-us" "es-es" "fr-moderne" "it-it" "sv-se" "sv-fi" ]
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
hunspellDirs = with lib; makeSearchPath ":" (flatten (forEach langs (lang: [
|
||||
"${hunspellDicts.${lang}}/share/hunspell"
|
||||
"${hunspellDicts.${lang}}/share/myspell"
|
||||
"${hunspellDicts.${lang}}/share/myspell/dicts"
|
||||
])));
|
||||
|
||||
in
|
||||
|
||||
symlinkJoin {
|
||||
name = "${typing-booster.name}-with-hunspell";
|
||||
paths = [ typing-booster ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postBuild = ''
|
||||
for i in bin/emoji-picker libexec/ibus-{setup,engine}-typing-booster; do
|
||||
wrapProgram "$out/$i" \
|
||||
--prefix NIX_HUNSPELL_DIRS : ${lib.escapeShellArg hunspellDirs}
|
||||
done
|
||||
|
||||
sed -i -e "s,${typing-booster},$out," $out/share/ibus/component/typing-booster.xml
|
||||
'';
|
||||
|
||||
inherit (typing-booster) meta;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue