gnu: perl-db-file: Use G-expressions.

* gnu/packages/databases.scm (perl-db-file)[arguments]:
Rewrite as G-expressions, using THIS-PACKAGE-INPUT.
This commit is contained in:
Tobias Geerinckx-Rice 2023-07-23 02:00:00 +02:00
parent c556332b74
commit 2938a2013f
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79

View File

@ -2786,15 +2786,17 @@ database.")
(sha256 (sha256
(base32 "1xm7s2ag15498kp7g8r20gxk22ncz3b3hz4b3srqf7ypif3a5dyf")))) (base32 "1xm7s2ag15498kp7g8r20gxk22ncz3b3hz4b3srqf7ypif3a5dyf"))))
(build-system perl-build-system) (build-system perl-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'configure 'modify-config.in
(lambda _
(substitute* "config.in"
(("/usr/local/BerkeleyDB")
#$(this-package-input "bdb"))))))))
(inputs (list bdb)) (inputs (list bdb))
(native-inputs (list perl-test-pod)) (native-inputs (list perl-test-pod))
(arguments
`(#:phases (modify-phases %standard-phases
(add-before
'configure 'modify-config.in
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "config.in"
(("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb"))))))))
(home-page "https://metacpan.org/release/DB_File") (home-page "https://metacpan.org/release/DB_File")
(synopsis "Perl5 access to Berkeley DB version 1.x") (synopsis "Perl5 access to Berkeley DB version 1.x")
(description (description