diff options
| Commit | 7391362d84121fc1f464fd36a56c45bac3d8eb98 (patch) | |
|---|---|---|
| Author | 2023-12-19 14:56:13 +0200 | |
| Committer | 2023-12-19 14:56:13 +0200 | |
| Files | a6bce629ac95bb345097f56621988b320ef26788 | |
| nix-7391362d84121fc1f464fd36a56c45bac3d8eb98.tar nix-7391362d84121fc1f464fd36a56c45bac3d8eb98.tar.gz nix-7391362d84121fc1f464fd36a56c45bac3d8eb98.zip | ||
| Parent | 17672a499e1480c01572b3aa528e31e872ef4121 (diff) | |
[overlays] Added xed-editor missing plugin dependencies and library location fix
2 files changed, 29 insertions, 0 deletions
| -rw-r--r-- | overlays/xed-editor/default.nix | 16 | ||||
| -rw-r--r-- | overlays/xed-editor/libxed.patch | 13 |
diff --git a/overlays/xed-editor/default.nix b/overlays/xed-editor/default.nix new file mode 100644 index 0000000..28ef4f9 --- /dev/null +++ b/overlays/xed-editor/default.nix @@ -0,0 +1,16 @@ +final: prev: { + xed-editor = prev.xed-editor.overrideAttrs (prevAttrs: { + buildInputs = prevAttrs.buildInputs ++ (with final; [ + gobject-introspection + python3.pkgs.pygobject3 + ]); + + patches = [ ./libxed.patch ]; + + preFixup = with final; '' + gappsWrapperArgs+=( + --prefix PYTHONPATH : "${python3.pkgs.pygobject3}/${python3.sitePackages}:$out/lib/xed/plugins/" + ) + ''; + }); +} diff --git a/overlays/xed-editor/libxed.patch b/overlays/xed-editor/libxed.patch new file mode 100644 index 0000000..655774b --- /dev/null +++ b/overlays/xed-editor/libxed.patch @@ -0,0 +1,13 @@ +diff --git a/xed/meson.build b/xed/meson.build +index 7525bad..3361010 100644 +--- a/xed/meson.build ++++ b/xed/meson.build +@@ -143,7 +143,7 @@ libxed = library( + dependencies: xed_deps, + include_directories: include_dirs, + install: true, +- install_dir: join_paths(libdir, 'xed') ++ install_dir: libdir + ) + + install_headers( |
