mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
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 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper
|
||||
{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper, symlinkJoin
|
||||
, configFile ? null
|
||||
}:
|
||||
|
||||
|
@ -37,13 +37,13 @@ let
|
|||
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}";
|
||||
paths = [ termite ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildCommand = ''
|
||||
mkdir -p $out/etc/xdg/termite/ $out/bin
|
||||
ln -s ${termite}/bin/termite $out/bin/termite
|
||||
wrapProgram $out/bin/termite --add-flags "--config ${configFile}"
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/termite \
|
||||
--add-flags "--config ${configFile}"
|
||||
'';
|
||||
passthru.terminfo = termite.terminfo;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue