diff options
Diffstat (limited to 'pkgs/applications/editors/geany/with-vte.nix')
-rw-r--r-- | pkgs/applications/editors/geany/with-vte.nix | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/pkgs/applications/editors/geany/with-vte.nix b/pkgs/applications/editors/geany/with-vte.nix index f7351454fb8..ece5c95f05a 100644 --- a/pkgs/applications/editors/geany/with-vte.nix +++ b/pkgs/applications/editors/geany/with-vte.nix @@ -1,8 +1,24 @@ -{ runCommand, makeWrapper, geany, gnome2 }: -let name = builtins.replaceStrings ["geany-"] ["geany-with-vte-"] geany.name; -in -runCommand name { nativeBuildInputs = [ makeWrapper ]; inherit (geany.meta); } " - mkdir -p $out - ln -s ${geany}/share $out - makeWrapper ${geany}/bin/geany $out/bin/geany --prefix LD_LIBRARY_PATH : ${gnome2.vte}/lib -" +{ symlinkJoin +, makeWrapper +, geany +, lndir +, vte +}: + +symlinkJoin { + name = "geany-with-vte-${geany.version}"; + + # TODO: add geany-plugins + paths = with geany; [ out doc man ]; + + nativeBuildInputs = [ makeWrapper ]; + + postBuild = '' + # need to replace the directory since it is a symlink + rm -r $out/bin; mkdir $out/bin + makeWrapper ${geany}/bin/geany $out/bin/geany \ + --prefix LD_LIBRARY_PATH : ${vte}/lib + ''; + + inherit (geany.meta); +} |