about summary refs log tree commit diff
path: root/pkgs/applications/editors/xed-editor
diff options
context:
space:
mode:
authortu-maurice <valentin.gehrke@zom.bi>2021-01-17 14:03:59 +0100
committertu-maurice <valentin.gehrke@zom.bi>2021-01-28 21:44:04 +0100
commitfb97c66d98c5257e6f3283c7cfa77f9ecddf323d (patch)
tree37c5e2ae6918187d786de50ccd08c834a582ac44 /pkgs/applications/editors/xed-editor
parent1d41739764af5e7d280fb8efc1f5eac4e01ef2a2 (diff)
downloadnixlib-fb97c66d98c5257e6f3283c7cfa77f9ecddf323d.tar
nixlib-fb97c66d98c5257e6f3283c7cfa77f9ecddf323d.tar.gz
nixlib-fb97c66d98c5257e6f3283c7cfa77f9ecddf323d.tar.bz2
nixlib-fb97c66d98c5257e6f3283c7cfa77f9ecddf323d.tar.lz
nixlib-fb97c66d98c5257e6f3283c7cfa77f9ecddf323d.tar.xz
nixlib-fb97c66d98c5257e6f3283c7cfa77f9ecddf323d.tar.zst
nixlib-fb97c66d98c5257e6f3283c7cfa77f9ecddf323d.zip
xed-editor: Init at 2.8.4
Diffstat (limited to 'pkgs/applications/editors/xed-editor')
-rw-r--r--pkgs/applications/editors/xed-editor/default.nix71
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/applications/editors/xed-editor/default.nix b/pkgs/applications/editors/xed-editor/default.nix
new file mode 100644
index 000000000000..d7b0703b8d5e
--- /dev/null
+++ b/pkgs/applications/editors/xed-editor/default.nix
@@ -0,0 +1,71 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, cmake
+, libxml2
+, libpeas
+, glib
+, gtk3
+, gtksourceview4
+, gspell
+, xapps
+, pkg-config
+, meson
+, ninja
+, wrapGAppsHook
+, intltool
+, itstool }:
+
+stdenv.mkDerivation rec {
+  pname = "xed-editor";
+  version = "2.8.4";
+
+  src = fetchFromGitHub {
+    owner = "linuxmint";
+    repo = "xed";
+    rev = version;
+    sha256 = "1hqr4157kp110p01jygqnnzj86zxlfiq4b53j345vqpx0f80c340";
+  };
+
+  nativeBuildInputs = [
+    meson
+    cmake
+    pkg-config
+    intltool
+    itstool
+    ninja
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    libxml2
+    glib
+    gtk3
+    gtksourceview4
+    libpeas
+    gspell
+    xapps
+  ];
+
+  postInstall = ''
+    glib-compile-schemas $out/share/glib-2.0/schemas
+  '';
+
+  doInstallCheck = true;
+  installCheckPhase = ''
+    if [[ "$($out/bin/xed --version)" == "xed - Version ${version}" ]] ; then
+      echo "${pname} smoke test passed"
+    else
+      echo "${pname} smoke test failed"
+      return 1
+    fi
+  '';
+
+  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 ];
+  };
+}