diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-04-26 15:28:06 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-04-26 15:37:44 +0300 |
commit | 8415fa35c79214fc2093882ed688f98f9abf7048 (patch) | |
tree | 3d6495e3f27496d0b980b13313f8544b787e3851 /pkgs | |
parent | 73db7887edc223bde336e84e4001ce692c8a922f (diff) | |
download | nixlib-8415fa35c79214fc2093882ed688f98f9abf7048.tar nixlib-8415fa35c79214fc2093882ed688f98f9abf7048.tar.gz nixlib-8415fa35c79214fc2093882ed688f98f9abf7048.tar.bz2 nixlib-8415fa35c79214fc2093882ed688f98f9abf7048.tar.lz nixlib-8415fa35c79214fc2093882ed688f98f9abf7048.tar.xz nixlib-8415fa35c79214fc2093882ed688f98f9abf7048.tar.zst nixlib-8415fa35c79214fc2093882ed688f98f9abf7048.zip |
fcitx-with-plugins: use symlinkJoin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/inputmethods/fcitx/wrapper.nix | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/pkgs/tools/inputmethods/fcitx/wrapper.nix b/pkgs/tools/inputmethods/fcitx/wrapper.nix index a0ae26189541..1e1a2b76a4bb 100644 --- a/pkgs/tools/inputmethods/fcitx/wrapper.nix +++ b/pkgs/tools/inputmethods/fcitx/wrapper.nix @@ -1,4 +1,4 @@ -{ stdenv, buildEnv, fcitx, fcitx-configtool, makeWrapper, plugins, kde5 }: +{ stdenv, symlinkJoin, fcitx, fcitx-configtool, makeWrapper, plugins, kde5 }: # This is based on the pidgin-with-plugins package. # Users should be able to configure what plugins are used @@ -12,24 +12,16 @@ # (fcitx-with-plugins.override { plugins = [ fcitx-anthy ]; }) # } -let -drv = buildEnv { - name = "fcitx-with-plugins-" + (builtins.parseDrvName fcitx.name).version; +symlinkJoin { + name = "fcitx-with-plugins-${fcitx.version}"; paths = [ fcitx fcitx-configtool kde5.fcitx-qt5 ] ++ plugins; + buildInputs = [ makeWrapper ]; + postBuild = '' - # TODO: This could be avoided if buildEnv could be forced to create all directories - if [ -L $out/bin ]; then - rm $out/bin - mkdir $out/bin - for i in ${fcitx}/bin/*; do - ln -s $i $out/bin - done - fi wrapProgram $out/bin/fcitx \ --set FCITXDIR "$out/" ''; - }; -in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; }) +} |