diff options
author | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-03-20 10:31:40 +0100 |
---|---|---|
committer | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-03-20 12:35:19 +0100 |
commit | da35dfcbbce8cb6614617f0087bb97a020f0d576 (patch) | |
tree | 9da7c90d46c4d2acad6901c561e9cf2af5dfb5e7 | |
parent | 0736cbb13ead05da82fb70f59eb6e52352ab9c2e (diff) |
Break out phases from the arguments of libsodium-komodo
-rw-r--r-- | private/komodo/libsodium-komodo.scm | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/private/komodo/libsodium-komodo.scm b/private/komodo/libsodium-komodo.scm index a56cf4d..7e3dfd7 100644 --- a/private/komodo/libsodium-komodo.scm +++ b/private/komodo/libsodium-komodo.scm @@ -4,21 +4,22 @@ #:use-module (guix gexp) #:use-module (guix packages)) +(define phases + (modify-phases + %standard-phases + (add-after + 'unpack + 'add-cmakelists + (lambda _ + (copy-recursively + #+ (local-file "komodo-libsodium-cmakelists.txt") + "CMakeLists.txt") + (copy-recursively + #+ (local-file "komodo-libsodium-sodiumconfig.cmake.in") + "sodiumConfig.cmake.in"))))) + (define arguments - (list - #:phases - #~ (modify-phases - %standard-phases - (add-after - 'unpack - 'add-cmakelists - (lambda _ - (copy-recursively - #+ (local-file "komodo-libsodium-cmakelists.txt") - "CMakeLists.txt") - (copy-recursively - #+ (local-file "komodo-libsodium-sodiumconfig.cmake.in") - "sodiumConfig.cmake.in")))))) + (list #:phases #~ phases)) (define-public libsodium-komodo (package |