Skip to content

Commit

Permalink
Merge pull request #280933 from bobby285271/fix/xed-plugins
Browse files Browse the repository at this point in the history
xed-editor: Fix typelib path
  • Loading branch information
Mic92 authored Jan 14, 2024
2 parents 5be07a5 + bfb5815 commit d1f5807
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/applications/editors/xed-editor/correct-gir-lib-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/xed/meson.build b/xed/meson.build
index 7525bad..ae0814e 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: join_paths(prefix, libdir, 'xed')
)

install_headers(
6 changes: 6 additions & 0 deletions pkgs/applications/editors/xed-editor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-MXRxzmRo/dRhp5Llib9ng1gzWW8uvzqTMjUVK8a3eJ8=";
};

patches = [
# We patch gobject-introspection and meson to store absolute paths to libraries in typelibs
# but that requires the install_dir is an absolute path.
./correct-gir-lib-path.patch
];

nativeBuildInputs = [
meson
pkg-config
Expand Down

0 comments on commit d1f5807

Please sign in to comment.