diff options
Diffstat (limited to 'pkgs/by-name/xe')
-rw-r--r-- | pkgs/by-name/xe/xed-editor/correct-gir-lib-path.patch | 13 | ||||
-rw-r--r-- | pkgs/by-name/xe/xed-editor/package.nix | 70 | ||||
-rw-r--r-- | pkgs/by-name/xe/xemu/package.nix | 4 |
3 files changed, 85 insertions, 2 deletions
diff --git a/pkgs/by-name/xe/xed-editor/correct-gir-lib-path.patch b/pkgs/by-name/xe/xed-editor/correct-gir-lib-path.patch new file mode 100644 index 000000000000..fa530e9a12af --- /dev/null +++ b/pkgs/by-name/xe/xed-editor/correct-gir-lib-path.patch @@ -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( diff --git a/pkgs/by-name/xe/xed-editor/package.nix b/pkgs/by-name/xe/xed-editor/package.nix new file mode 100644 index 000000000000..4078721a085f --- /dev/null +++ b/pkgs/by-name/xe/xed-editor/package.nix @@ -0,0 +1,70 @@ +{ stdenv +, lib +, fetchFromGitHub +, libxml2 +, libpeas +, glib +, gtk3 +, gtksourceview4 +, gspell +, xapp +, pkg-config +, python3 +, meson +, ninja +, versionCheckHook +, wrapGAppsHook3 +, intltool +, itstool +}: + +stdenv.mkDerivation rec { + pname = "xed-editor"; + version = "3.6.5"; + + src = fetchFromGitHub { + owner = "linuxmint"; + repo = "xed"; + rev = version; + sha256 = "sha256-FG8SlMyhee0W88Pt3oW1tsFyy/KeCOE+QlDbE6hzjcg="; + }; + + 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 + intltool + itstool + ninja + python3 + versionCheckHook + wrapGAppsHook3 + ]; + + buildInputs = [ + libxml2 + glib + gtk3 + gtksourceview4 + libpeas + gspell + xapp + ]; + + doInstallCheck = true; + versionCheckProgram = "${placeholder "out"}/bin/xed"; + + meta = with lib; { + description = "Light weight text editor from Linux Mint"; + homepage = "https://github.com/linuxmint/xed"; + license = licenses.gpl2Only; + platforms = platforms.linux; + maintainers = with maintainers; [ tu-maurice bobby285271 ]; + mainProgram = "xed"; + }; +} diff --git a/pkgs/by-name/xe/xemu/package.nix b/pkgs/by-name/xe/xemu/package.nix index b1205af44133..a9688b69f7f8 100644 --- a/pkgs/by-name/xe/xemu/package.nix +++ b/pkgs/by-name/xe/xemu/package.nix @@ -27,14 +27,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "xemu"; - version = "0.7.127"; + version = "0.7.128"; src = fetchFromGitHub { owner = "xemu-project"; repo = "xemu"; rev = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-qf4zc+qZSLZLjqpKUVgSEhb5VGAzkiRlJSsSCCbNImU="; + hash = "sha256-gJ5Da7bn4I7EOK12zqjekOJn+299v8WqH8e68GYUKpQ="; }; nativeBuildInputs = |