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/meson.build
===================================================================
--- nix.orig/meson.build
+++ nix/meson.build
@@ -57,4 +57,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/meson.options
===================================================================
--- nix.orig/meson.options
+++ nix/meson.options
@@ -27,3 +27,9 @@ option(
   value : false,
   description : 'Build benchmarks (requires gbenchmark)',
 )
+
+option(
+  'functional-tests',
+  type : 'feature',
+  value : 'disabled',
+  description : 'run nix-perl tests')
openSUSE Build Service is sponsored by