Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / text-engine / default.nix
blob0a9004d01a5884b3e80ca5715bea693c0aa4d8a3
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , fetchpatch
5 , meson
6 , ninja
7 , json-glib
8 , gtk4
9 , libxml2
10 , gobject-introspection
11 , pkg-config
12 , libadwaita
15 stdenv.mkDerivation rec {
16   pname = "text-engine";
17   version = "0.1.1";
18   src = fetchFromGitHub {
19     owner = "mjakeman";
20     repo = pname;
21     rev = "v${version}";
22     sha256 = "sha256-YSG4Vk3hrmtaJkK1WAlQcdgiDdgC4Un0t6UdaoIcUes=";
23   };
25   patches = [
26     # Fixes build with newer versions of clang
27     (fetchpatch {
28       url = "https://github.com/mjakeman/text-engine/commit/749c94d853c0b0e29e79a1b270ec61947b65c319.patch";
29       hash = "sha256-vs/a8IBovArw8tc1ZLUsaDHRVyA71KMB1NGENOKNOdk=";
30     })
31   ];
33   nativeBuildInputs = [ gobject-introspection gtk4 meson ninja pkg-config ];
35   buildInputs = [ libadwaita json-glib libxml2 ];
37   meta = with lib; {
38     description = "Rich text framework for GTK";
39     homepage = "https://github.com/mjakeman/text-engine";
40     license = with licenses; [ mpl20 lgpl21Plus ];
41     maintainers = with maintainers; [ foo-dogsquared ];
42   };