Subject: [PATCH v2 33/37] gnu: Add perl-dbix-class-dynamicdefault.

From: Felix Lechner <[email-masked]>
Date: Tue, 16 Jan 2024 14:13:11 -0800

* gnu/packages/databases.scm (perl-dbix-class-dynamicdefault): New variable.

Change-Id: Ib333721a5e24a4994d14b591872001b335eb5d5f
---
 gnu/packages/databases.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 95b8d5b50f..f30c0f38f4 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2060,6 +2060,31 @@ (define-public perl-dbix-class-cursor-cached
 built-in caching support.")
     (license license:perl-license)))
 
+(define-public perl-dbix-class-dynamicdefault
+  (package
+    (name "perl-dbix-class-dynamicdefault")
+    (version "0.04")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/M/MS/MSTROUT/DBIx-Class-DynamicDefault-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "1yssda00988hn9v96jl95apbzib74vgbcgf69m5mhhj64amm33r2"))))
+    (build-system perl-build-system)
+    (arguments
+     (list
+      #:tests? #f))
+    (native-inputs (list perl-dbicx-testdatabase
+                         perl-module-install))
+    (propagated-inputs (list perl-dbix-class))
+    (home-page "https://metacpan.org/release/DBIx-Class-DynamicDefault")
+    (synopsis "Automatically set and update database fields")
+    (description "Automatically set and update fields with values calculated
+at runtime.")
+    (license license:perl-license)))
+
 (define-public perl-dbix-class-introspectablem2m
   (package
     (name "perl-dbix-class-introspectablem2m")
-- 
2.41.0