From a4a209666e2dcd62245f205c90e0ae08fc5adc26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C6=B0=C6=A1ng=20Vi=E1=BB=87t=20Ho=C3=A0ng?= Date: Wed, 18 Oct 2023 23:53:06 +0700 Subject: [PATCH 1/2] qView: 5.0 -> 6.1 --- pkgs/applications/graphics/qview/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/graphics/qview/default.nix b/pkgs/applications/graphics/qview/default.nix index e5d148da8e6a..b52431e723e8 100644 --- a/pkgs/applications/graphics/qview/default.nix +++ b/pkgs/applications/graphics/qview/default.nix @@ -6,17 +6,19 @@ , qttools , qtimageformats , qtsvg +, qtx11extras +, x11Support ? true }: mkDerivation rec { pname = "qview"; - version = "5.0"; + version = "6.1"; src = fetchFromGitHub { owner = "jurplel"; repo = "qView"; rev = version; - hash = "sha256-VQ0H9iPrrxO9e/kMo7yZ/zN5I2qDWBCAFacS9uGuZLI="; + hash = "sha256-h1K1Smfy875NoHtgUrOvZZp0IgcQdbyuQhXU9ndM4bA="; }; nativeBuildInputs = [ qmake ]; @@ -26,7 +28,7 @@ mkDerivation rec { qttools qtimageformats qtsvg - ]; + ] ++ lib.optionals x11Support [ qtx11extras ]; meta = with lib; { description = "Practical and minimal image viewer"; From 5b689b360b87d6192e4a252d908510660d364e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C6=B0=C6=A1ng=20Vi=E1=BB=87t=20Ho=C3=A0ng?= Date: Thu, 19 Oct 2023 00:18:02 +0700 Subject: [PATCH 2/2] qView: fix failed build when x11Support is false --- pkgs/applications/graphics/qview/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/graphics/qview/default.nix b/pkgs/applications/graphics/qview/default.nix index b52431e723e8..9bba92a2b5b7 100644 --- a/pkgs/applications/graphics/qview/default.nix +++ b/pkgs/applications/graphics/qview/default.nix @@ -21,6 +21,8 @@ mkDerivation rec { hash = "sha256-h1K1Smfy875NoHtgUrOvZZp0IgcQdbyuQhXU9ndM4bA="; }; + qmakeFlags = lib.optionals (!x11Support) [ "CONFIG+=NO_X11" ]; + nativeBuildInputs = [ qmake ]; buildInputs = [