@@ -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}