File 0001-port-option-to-disable-functional-tests-to-meson.patch of Package nix

From 6180476e03a8d77c8e75c71f6816e32a5ef9b7ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <darix@nordisch.org>
Date: Sun, 29 Dec 2024 19:44:52 +0100
Subject: [PATCH 1/3] port option to disable functional tests to meson

---
 meson.build       |  2 ++
 meson_options.txt | 12 ++++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 meson_options.txt

Index: nix-2.26.1/meson.build
===================================================================
--- nix-2.26.1.orig/meson.build
+++ nix-2.26.1/meson.build
@@ -53,4 +53,6 @@ if get_option('unit-tests')
   subproject('libexpr-tests')
   subproject('libflake-tests')
 endif
+if get_option('functional-tests').enabled()
 subproject('nix-functional-tests')
+endif
Index: nix-2.26.1/meson.options
===================================================================
--- nix-2.26.1.orig/meson.options
+++ nix-2.26.1/meson.options
@@ -11,3 +11,9 @@ option('unit-tests', type : 'boolean', v
 option('bindings', type : 'boolean', value : true,
   description : 'Build language bindings (e.g. Perl)',
 )
+
+option(
+  'functional-tests',
+  type : 'feature',
+  value : 'disabled',
+  description : 'run nix-perl tests')
openSUSE Build Service is sponsored by