about summary refs log tree commit diff
path: root/pkgs/applications/graphics/gcolor3
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-01-02 17:01:47 +0100
committerJan Tojnar <jtojnar@gmail.com>2022-01-02 17:01:47 +0100
commit50dd556b4f2f8ecad2480e5b2cd8ed40a57f62a8 (patch)
treeabb44169faaa519d91adbd9325eff6e3900b4904 /pkgs/applications/graphics/gcolor3
parentd8ce0727e4d9cf25d9a4b21a5ae1344f9e3d34f6 (diff)
gcolor3: fix build
Diffstat (limited to 'pkgs/applications/graphics/gcolor3')
-rw-r--r--pkgs/applications/graphics/gcolor3/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/gcolor3/default.nix b/pkgs/applications/graphics/gcolor3/default.nix
index 2771559416bf6..63725b97431b4 100644
--- a/pkgs/applications/graphics/gcolor3/default.nix
+++ b/pkgs/applications/graphics/gcolor3/default.nix
@@ -6,7 +6,7 @@
 , pkg-config
 , libxml2
 , gtk3
-, libportal
+, libportal-gtk3
 , wrapGAppsHook
 }:
 
@@ -33,12 +33,16 @@ stdenv.mkDerivation rec {
 
   buildInputs = [
     gtk3
-    libportal
+    libportal-gtk3
   ];
 
   postPatch = ''
     chmod +x meson_install.sh # patchShebangs requires executable file
     patchShebangs meson_install.sh
+
+    # https://gitlab.gnome.org/World/gcolor3/merge_requests/151
+    substituteInPlace meson.build --replace "dependency(${"\n"}  'libportal'" "dependency(${"\n"}  'libportal-gtk3'"
+    substituteInPlace src/gcolor3-color-selection.c --replace "libportal/portal-gtk3.h" "libportal-gtk3/portal-gtk3.h"
   '';
 
   meta = with lib; {