git.iko.soy/typeable/nixpkgs
on master help sign in
Fix termite-with-config's terminfo

The level of indirection introduced by termite-with-config didn't mesh well with the terminfo database. This is solved by using symlinkJoin so the environment is properly propagated.

commit9375da7c724bcf76eeb107769aee64561b9cd51a authorYacine Hmito <yacine.hmito@gmail.com> dateWed 28 Sep 2016, 12:11 (10 years ago) parent90e9ad2
1 file changed+6−6
pkgs/applications/misc/termite/default.nix+6−6
pkgs/applications/misc/termite/default.nix+6−6
@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper
1+{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper, symlinkJoin
22, configFile ? null
33}:
44
@@ -37,13 +37,13 @@ let
3737 platforms = platforms.all;
3838 };
3939 };
40−in if configFile == null then termite else stdenv.mkDerivation {
40+in if configFile == null then termite else symlinkJoin {
4141 name = "termite-with-config-${version}";
42+ paths = [ termite ];
4243 nativeBuildInputs = [ makeWrapper ];
43− buildCommand = ''
44− mkdir -p $out/etc/xdg/termite/ $out/bin
45− ln -s ${termite}/bin/termite $out/bin/termite
46− wrapProgram $out/bin/termite --add-flags "--config ${configFile}"
44+ postBuild = ''
45+ wrapProgram $out/bin/termite \
46+ --add-flags "--config ${configFile}"
4747 '';
4848 passthru.terminfo = termite.terminfo;
4949}