summary refs log tree commit diff
path: root/pkgs/development/libraries/gtksourceview
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-02-16 18:36:13 +0000
committerJan Tojnar <jtojnar@gmail.com>2022-03-25 15:01:22 +0100
commit8212afc323c2c0974707bcd29f4294374313b1d6 (patch)
tree94d00e61d498dfc4b30fca1203a13c3dbab42644 /pkgs/development/libraries/gtksourceview
parent3852b7117ae0f996f65377d3efda04a33de1ca4e (diff)
downloadnixpkgs-8212afc323c2c0974707bcd29f4294374313b1d6.tar
nixpkgs-8212afc323c2c0974707bcd29f4294374313b1d6.tar.gz
nixpkgs-8212afc323c2c0974707bcd29f4294374313b1d6.tar.bz2
nixpkgs-8212afc323c2c0974707bcd29f4294374313b1d6.tar.lz
nixpkgs-8212afc323c2c0974707bcd29f4294374313b1d6.tar.xz
nixpkgs-8212afc323c2c0974707bcd29f4294374313b1d6.tar.zst
nixpkgs-8212afc323c2c0974707bcd29f4294374313b1d6.zip
gtksourceview5: 5.2.0 → 5.3.2
https://gitlab.gnome.org/GNOME/gtksourceview/-/compare/5.2.0...5.3.2
Diffstat (limited to 'pkgs/development/libraries/gtksourceview')
-rw-r--r--pkgs/development/libraries/gtksourceview/5.x.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/development/libraries/gtksourceview/5.x.nix b/pkgs/development/libraries/gtksourceview/5.x.nix
index e6ad0f1ae36..411f9c24700 100644
--- a/pkgs/development/libraries/gtksourceview/5.x.nix
+++ b/pkgs/development/libraries/gtksourceview/5.x.nix
@@ -10,6 +10,7 @@
 , pango
 , fribidi
 , vala
+, gi-docgen
 , libxml2
 , perl
 , gettext
@@ -22,13 +23,13 @@
 
 stdenv.mkDerivation rec {
   pname = "gtksourceview";
-  version = "5.2.0";
+  version = "5.3.2";
 
-  outputs = [ "out" "dev" ];
+  outputs = [ "out" "dev" "devdoc" ];
 
   src = fetchurl {
     url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
-    sha256 = "ybNPoCZU9WziL6CIJ9idtLqBYxsubX0x6mXRPHKUMOk=";
+    sha256 = "r3c24u4828EBMJDoyvNfuJ1lz0HJw5nKxdiZLZVd7TA=";
   };
 
   patches = [
@@ -46,6 +47,7 @@ stdenv.mkDerivation rec {
     perl
     gobject-introspection
     vala
+    gi-docgen
   ];
 
   buildInputs = [
@@ -68,6 +70,10 @@ stdenv.mkDerivation rec {
     dbus
   ];
 
+  mesonFlags = [
+    "-Dgtk_doc=true"
+  ];
+
   doCheck = stdenv.isLinux;
 
   checkPhase = ''
@@ -81,6 +87,11 @@ stdenv.mkDerivation rec {
     runHook postCheck
   '';
 
+  postFixup = ''
+    # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
+    moveToOutput "share/doc" "$devdoc"
+  '';
+
   passthru = {
     updateScript = gnome.updateScript {
       packageName = "gtksourceview";