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.
This commit is contained in:
parent
90e9ad2106
commit
9375da7c72
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper
|
{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper, symlinkJoin
|
||||||
, configFile ? null
|
, configFile ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -37,13 +37,13 @@ let
|
|||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in if configFile == null then termite else stdenv.mkDerivation {
|
in if configFile == null then termite else symlinkJoin {
|
||||||
name = "termite-with-config-${version}";
|
name = "termite-with-config-${version}";
|
||||||
|
paths = [ termite ];
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildCommand = ''
|
postBuild = ''
|
||||||
mkdir -p $out/etc/xdg/termite/ $out/bin
|
wrapProgram $out/bin/termite \
|
||||||
ln -s ${termite}/bin/termite $out/bin/termite
|
--add-flags "--config ${configFile}"
|
||||||
wrapProgram $out/bin/termite --add-flags "--config ${configFile}"
|
|
||||||
'';
|
'';
|
||||||
passthru.terminfo = termite.terminfo;
|
passthru.terminfo = termite.terminfo;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user