From a268c6eed04b5aadb8e330c846f38b8a24fbd232 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 27 Mar 2022 11:28:56 +0800 Subject: [PATCH] text-engine: init at 0.1.0 --- pkgs/default.nix | 1 + pkgs/text-engine.nix | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/text-engine.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 39260966..84345b84 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -39,6 +39,7 @@ let pop-launcher = callPackage ./pop-launcher.nix { }; pop-launcher-plugin-duckduckgo-bangs = callPackage ./pop-launcher-plugin-duckduckgo-bangs.nix { }; + text-engine = callPackage ./text-engine.nix { }; tic-80 = callPackage ./tic-80 { }; segno = libsForQt5.callPackage ./segno.nix { }; sioyek = libsForQt5.callPackage ./sioyek.nix { }; diff --git a/pkgs/text-engine.nix b/pkgs/text-engine.nix new file mode 100644 index 00000000..9bea1238 --- /dev/null +++ b/pkgs/text-engine.nix @@ -0,0 +1,35 @@ +{ stdenv, lib, fetchFromGitHub, meson, ninja, json-glib, gtk4, libxml2, gobject-introspection, pkg-config, libadwaita }: + +stdenv.mkDerivation rec { + pname = "text-engine"; + version = "0.1.0"; + src = fetchFromGitHub { + owner = "mjakeman"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-TVQD5sAJJkcs/w4K5B3e+hvfTcoGXunsceada6k/Hjs="; + }; + + nativeBuildInputs = [ + gobject-introspection + gtk4 + meson + ninja + pkg-config + ]; + + buildInputs = [ + libadwaita + json-glib + libxml2 + ]; + + meta = with lib; { + description = "Rich text framework for GTK"; + homepage = "https://github.com/mjakeman/text-engine"; + + # TODO: Change this, plz. + # Seems to be a modified version of MIT license. + license = licenses.mit; + }; +}