Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74387 from jtojnar/geany-clean-up
geany: clean up and switch to GTK3
- Loading branch information
Showing
2 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |