aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntero Mejr <antero@mailbox.org>2023-06-04 17:41:59 +0000
committerDanny Milosavljevic <dannym@friendly-machines.com>2024-12-22 13:12:28 +0100
commit57c38bb103a65c230e63f927191da358a67d1db9 (patch)
tree21585c4072ca933bd6273e7a021f45cdf5a82df1
parent3463ab9048da1629c720976d9093bd48b9f94a8f (diff)
downloadguix-57c38bb103a65c230e63f927191da358a67d1db9.tar.gz
guix-57c38bb103a65c230e63f927191da358a67d1db9.zip
gnu: Add perl-dbix-class-dynamicdefault.
* gnu/packages/databases.scm (perl-dbix-class-dynamicdefault): New variable. Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
-rw-r--r--gnu/packages/databases.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index c9a0c517c7..14d1d7f8c7 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2375,6 +2375,29 @@ a fresh database for every test, you don't have to worry about cleaning up
after your tests, ordering of tests affecting failure, etc.")
(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)
+ (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 fields")
+ (description
+ "Automatically set and update fields with values calculated at runtime.
+Ipdate or create actions will set the specified columns to the value returned
+by the callback you specified as a method name or code reference.")
+ (license license:perl-license)))
+
(define-public perl-dbd-pg
(package
(name "perl-dbd-pg")