diff mbox series

[bug#67902,v4,71/98] gnu: Add php-symfony-lock.

Message ID 20241007214530.4420-71-ngraves@ngraves.fr
State New
Headers show
Series [bug#67902,v4,01/98] gnu: Add abnfgen. | expand

Commit Message

Nicolas Graves Oct. 7, 2024, 9:44 p.m. UTC
* gnu/packages/php-xyz.scm (php-symfony-lock): New variable.

Change-Id: Iae351b0e64fb305158d7dad97d5cfb5c1b143e08
---
 gnu/packages/php-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 3a85e60181..d7ed935a79 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -1877,3 +1877,39 @@  (define-public php-symfony-intl
     (home-page "https://symfony.com")
     (license license:expat)))
 
+(define-public php-symfony-lock
+  (package
+    (name "php-symfony-lock")
+    (version "6.3.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/symfony/lock")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1ldnv0hlakxi3cs1x39swg7kr60rj8m55ivxfn7ggfw38b8725xz"))))
+    (build-system composer-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda _
+              (invoke "redis-server" "--daemonize" "yes"))))))
+    (inputs
+     (list php-psr-log php-symfony-deprecation-contracts))
+    (native-inputs
+     (list php-doctrine-dbal
+           php-phpunit-phpunit
+           php-predis-predis
+           redis
+           util-linux))
+    (synopsis "Manage PHP locks")
+    (description
+     "This package provides utilities to create and manage locks in PHP, a
+mechanism to provide exclusive access to a shared resource.")
+    (home-page "https://symfony.com")
+    (license license:expat)))
+