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

diff --git a/meson.build b/meson.build
index 1554244ab..83d5c0b9c 100644
--- a/meson.build
+++ b/meson.build
@@ -34,6 +34,7 @@ if not meson.is_cross_build()
 endif
 
 # Testing
+if get_option('functional-tests').enabled()
 subproject('nix-util-test-support')
 subproject('nix-util-tests')
 subproject('nix-store-test-support')
@@ -42,3 +43,4 @@ subproject('nix-fetchers-tests')
 subproject('nix-expr-test-support')
 subproject('nix-expr-tests')
 subproject('nix-flake-tests')
+endif
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 000000000..45a656914
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1,12 @@
+# Nix-Perl build options
+#============================================================================
+
+
+# compiler args
+#============================================================================
+
+option(
+  'functional-tests',
+  type : 'feature',
+  value : 'disabled',
+  description : 'run nix-perl tests')
-- 
2.47.1

openSUSE Build Service is sponsored by